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: https://origsvn.digium.com/svn/asterisk/trunk@179323 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Joshua Colp
2009-03-02 14:28:09 +00:00
parent 93749ba001
commit 775b30307f

View File

@@ -11184,7 +11184,9 @@ static void delete_users(void)
AST_LIST_LOCK(&registrations);
while ((reg = AST_LIST_REMOVE_HEAD(&registrations, 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]);