MODAPP-211

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11741 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2009-02-11 00:31:58 +00:00
parent bcb20f7ab5
commit 36daaffb47
2 changed files with 4 additions and 0 deletions

View File

@ -802,7 +802,9 @@ SWITCH_STANDARD_API(enum_function)
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");
}
}

View File

@ -658,7 +658,9 @@ void switch_load_timezones(switch_bool_t reload)
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 );