[Freeswitch-svn] [commit] r11741 - in freeswitch/trunk/src: . mod/applications/mod_enum

FreeSWITCH SVN anthm at freeswitch.org
Tue Feb 10 16:31:58 PST 2009


Author: anthm
Date: Tue Feb 10 18:31:58 2009
New Revision: 11741

Log:
MODAPP-211

Modified:
   freeswitch/trunk/src/mod/applications/mod_enum/mod_enum.c
   freeswitch/trunk/src/switch_time.c

Modified: freeswitch/trunk/src/mod/applications/mod_enum/mod_enum.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_enum/mod_enum.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_enum/mod_enum.c	Tue Feb 10 18:31:58 2009
@@ -802,7 +802,9 @@
 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");
 	}
 }

Modified: freeswitch/trunk/src/switch_time.c
==============================================================================
--- freeswitch/trunk/src/switch_time.c	(original)
+++ freeswitch/trunk/src/switch_time.c	Tue Feb 10 18:31:58 2009
@@ -658,7 +658,9 @@
 
 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 );



More information about the Freeswitch-svn mailing list