mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-31 10:46:27 +00:00
MODAPP-211
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11741 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
bcb20f7ab5
commit
36daaffb47
@ -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)
|
|||||||
|
|
||||||
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 );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user