提交 0ccb9453 authored 作者: Anthony Minessale's avatar Anthony Minessale 提交者: Ken Rice

let callers delete themselves on reload

上级 63be0770
...@@ -2247,7 +2247,7 @@ static void fifo_caller_del(const char *uuid) ...@@ -2247,7 +2247,7 @@ static void fifo_caller_del(const char *uuid)
if (uuid) { if (uuid) {
sql = switch_mprintf("delete from fifo_callers where uuid='%q'", uuid); sql = switch_mprintf("delete from fifo_callers where uuid='%q'", uuid);
} else { } else {
sql = switch_mprintf("delete from fifo_callers", uuid); sql = switch_mprintf("delete from fifo_callers");
} }
fifo_execute_sql(sql, globals.sql_mutex); fifo_execute_sql(sql, globals.sql_mutex);
...@@ -4251,7 +4251,6 @@ static switch_status_t load_config(int reload, int del_all) ...@@ -4251,7 +4251,6 @@ static switch_status_t load_config(int reload, int del_all)
} }
} }
switch_mutex_unlock(globals.mutex); switch_mutex_unlock(globals.mutex);
fifo_caller_del(NULL);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论