提交 36daaffb authored 作者: Anthony Minessale's avatar Anthony Minessale

MODAPP-211

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11741 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 bcb20f7a
...@@ -802,7 +802,9 @@ SWITCH_STANDARD_API(enum_function) ...@@ -802,7 +802,9 @@ SWITCH_STANDARD_API(enum_function)
static void event_handler(switch_event_t *event) static void event_handler(switch_event_t *event)
{ {
if (globals.auto_reload) { if (globals.auto_reload) {
switch_mutex_lock(MUTEX);
do_load(); do_load();
switch_mutex_unlock(MUTEX);
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "ENUM Reloaded\n"); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "ENUM Reloaded\n");
} }
} }
......
...@@ -658,7 +658,9 @@ void switch_load_timezones(switch_bool_t reload) ...@@ -658,7 +658,9 @@ void switch_load_timezones(switch_bool_t reload)
static void event_handler(switch_event_t *event) static void event_handler(switch_event_t *event)
{ {
switch_mutex_lock(globals.mutex);
switch_load_timezones(1); switch_load_timezones(1);
switch_mutex_unlock(globals.mutex);
} }
static void tztime(const time_t * const timep, const char *tzstring, struct tm * const tmp ); static void tztime(const time_t * const timep, const char *tzstring, struct tm * const tmp );
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论