mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-19 00:00:09 +00:00
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:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user