提交 99fd7a87 authored 作者: Michael Jerris's avatar Michael Jerris

fix auto in will not use the last slot

上级 65f0d16d
......@@ -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);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论