[asterisk-commits] mmichelson: branch group/CCSS r239999 - /team/group/CCSS/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jan 13 17:27:04 CST 2010


Author: mmichelson
Date: Wed Jan 13 17:27:02 2010
New Revision: 239999

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=239999
Log:
Only call AST_SCHED_DEL if the sched_id parameter is not -1


Modified:
    team/group/CCSS/channels/chan_sip.c

Modified: team/group/CCSS/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/group/CCSS/channels/chan_sip.c?view=diff&rev=239999&r1=239998&r2=239999
==============================================================================
--- team/group/CCSS/channels/chan_sip.c (original)
+++ team/group/CCSS/channels/chan_sip.c Wed Jan 13 17:27:02 2010
@@ -3792,7 +3792,9 @@
 
 static int sip_cc_monitor_cancel_available_timer(struct ast_cc_monitor *monitor, const int core_id, int *sched_id)
 {
-	AST_SCHED_DEL(sched, *sched_id);
+	if (*sched_id != -1) {
+		AST_SCHED_DEL(sched, *sched_id);
+	}
 	return 0;
 }
 




More information about the asterisk-commits mailing list