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
1.6.2
Joshua Colp 17 years ago
parent 93749ba001
commit 775b30307f

@ -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]);

Loading…
Cancel
Save