diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-03-02 14:28:09 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-03-02 14:28:09 +0000 |
commit | 2d95f1b34231157dce132c635a607c905e14bfbc (patch) | |
tree | 52d6c1c2f5833dcee6997226a999f2794919bf93 /channels/chan_iax2.c | |
parent | b415a38ac4f3de9ac108561bf67433dce1ce1db1 (diff) |
Do not try to remove a registration scheduled item if the scheduler context has already been destroyed.
(closes issue #14580)
Reported by: alecdavis
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@179323 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_iax2.c')
-rw-r--r-- | channels/chan_iax2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index 3246bae5a..46b3b5ff8 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -11184,7 +11184,9 @@ static void delete_users(void) 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]); |