git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11741
d0543943-73ff-0310-b7d9-
9358b9ac24b2
static void event_handler(switch_event_t *event)
{
if (globals.auto_reload) {
+ switch_mutex_lock(MUTEX);
do_load();
+ switch_mutex_unlock(MUTEX);
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "ENUM Reloaded\n");
}
}
static void event_handler(switch_event_t *event)
{
+ switch_mutex_lock(globals.mutex);
switch_load_timezones(1);
+ switch_mutex_unlock(globals.mutex);
}
static void tztime(const time_t * const timep, const char *tzstring, struct tm * const tmp );