[asterisk-commits] file: trunk r179323 - /trunk/channels/chan_iax2.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Mar 2 08:28:32 CST 2009
Author: file
Date: Mon Mar 2 08:28:09 2009
New Revision: 179323
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=179323
Log:
Do not try to remove a registration scheduled item if the scheduler context has already been destroyed.
(closes issue #14580)
Reported by: alecdavis
Modified:
trunk/channels/chan_iax2.c
Modified: trunk/channels/chan_iax2.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/channels/chan_iax2.c?view=diff&rev=179323&r1=179322&r2=179323
==============================================================================
--- trunk/channels/chan_iax2.c (original)
+++ trunk/channels/chan_iax2.c Mon Mar 2 08:28:09 2009
@@ -11184,7 +11184,9 @@
AST_LIST_LOCK(®istrations);
while ((reg = AST_LIST_REMOVE_HEAD(®istrations, entry))) {
- ast_sched_thread_del(sched, reg->expire);
+ if (sched) {
+ ast_sched_thread_del(sched, reg->expire);
+ }
if (reg->callno) {
int callno = reg->callno;
ast_mutex_lock(&iaxsl[callno]);
More information about the asterisk-commits
mailing list