1
0
mirror of https://github.com/signalwire/freeswitch.git synced 2025-03-07 10:48:06 +00:00

fix auto in will not use the last slot

This commit is contained in:
Michael Jerris 2013-05-06 11:45:30 -04:00
parent 65f0d16dee
commit 99fd7a87ff

@ -207,7 +207,7 @@ static valet_token_t *next_id(switch_core_session_t *session, valet_lot_t *lot,
} }
} }
for (i = min; (i < max || max == 0); i++) { for (i = min; (i <= max || max == 0); i++) {
switch_snprintf(buf, sizeof(buf), "%d", i); switch_snprintf(buf, sizeof(buf), "%d", i);
switch_mutex_lock(lot->mutex); switch_mutex_lock(lot->mutex);
token = (valet_token_t *) switch_core_hash_find(lot->hash, buf); token = (valet_token_t *) switch_core_hash_find(lot->hash, buf);