[asterisk-commits] murf: branch murf/bug11210 r102601 - /team/murf/bug11210/include/asterisk/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Feb 5 20:02:06 CST 2008


Author: murf
Date: Tue Feb  5 20:02:05 2008
New Revision: 102601

URL: http://svn.digium.com/view/asterisk?view=rev&rev=102601
Log:
OK, good, I hadn't written AST_SCHED_DEL_UNREF quite correctly. This fix allows dialogs to act sanely, but I've still got a peer problem on unload

Modified:
    team/murf/bug11210/include/asterisk/sched.h

Modified: team/murf/bug11210/include/asterisk/sched.h
URL: http://svn.digium.com/view/asterisk/team/murf/bug11210/include/asterisk/sched.h?view=diff&rev=102601&r1=102600&r2=102601
==============================================================================
--- team/murf/bug11210/include/asterisk/sched.h (original)
+++ team/murf/bug11210/include/asterisk/sched.h Tue Feb  5 20:02:05 2008
@@ -53,8 +53,9 @@
 			usleep(1); \
 		if (_count == 10) \
 			ast_log(LOG_WARNING, "Unable to cancel schedule ID %d.  This is probably a bug (%s: %s, line %d).\n", id, __FILE__, __PRETTY_FUNCTION__, __LINE__); \
+		if (id > -1) \
+			refcall; \
 		id = -1; \
-		refcall; \
 	} while (0);
 
 #define AST_SCHED_REPLACE_VARIABLE(id, sched, when, callback, data, variable) \




More information about the asterisk-commits mailing list