Skip to content

Commit

Permalink
fix auto in will not use the last slot
Browse files Browse the repository at this point in the history
  • Loading branch information
mjerris committed May 6, 2013
1 parent 65f0d16 commit 99fd7a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mod/applications/mod_valet_parking/mod_valet_parking.c
Original file line number Diff line number Diff line change
Expand Up @@ -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_mutex_lock(lot->mutex);
token = (valet_token_t *) switch_core_hash_find(lot->hash, buf);
Expand Down

0 comments on commit 99fd7a8

Please sign in to comment.