[Freeswitch-svn] [commit] r11280 - freeswitch/trunk/src

FreeSWITCH SVN anthm at freeswitch.org
Mon Jan 19 08:53:51 PST 2009


Author: anthm
Date: Mon Jan 19 10:53:51 2009
New Revision: 11280

Log:
no timers with 0 interval

Modified:
   freeswitch/trunk/src/switch_time.c

Modified: freeswitch/trunk/src/switch_time.c
==============================================================================
--- freeswitch/trunk/src/switch_time.c	(original)
+++ freeswitch/trunk/src/switch_time.c	Mon Jan 19 10:53:51 2009
@@ -238,7 +238,7 @@
 		}
 	}
 
-	if (globals.RUNNING != 1 || !globals.mutex) {
+	if (globals.RUNNING != 1 || !globals.mutex || timer->interval < 1) {
 		return SWITCH_STATUS_FALSE;
 	}
 
@@ -255,7 +255,7 @@
 		private_info->roll = TIMER_MATRIX[timer->interval].roll;
 		private_info->ready = 1;
 
-		if (timer->interval < MS_PER_TICK) {
+		if (timer->interval > 0 && timer->interval < MS_PER_TICK) {
 			MS_PER_TICK = timer->interval;
 		}
 



More information about the Freeswitch-svn mailing list