]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Scheduler: Fix a nasty scheduler caching bug which makes new tasks not execute
authorJonathan Rose <jrose@digium.com>
Tue, 14 Oct 2014 18:49:25 +0000 (18:49 +0000)
committerJonathan Rose <jrose@digium.com>
Tue, 14 Oct 2014 18:49:25 +0000 (18:49 +0000)
commit68d3aeeb12509c039747524da0dd8b314b9928ae
tree75f77b00793a960fa4bb7ef8f53e0d2b7e41a2b3
parentd0566ed1c6484dc6c6b98d769c607d9ec0132917
Scheduler: Fix a nasty scheduler caching bug which makes new tasks not execute

Tasks that were marked for pending deletion in the scheduler would be moved to
the cache for later reuse, but after being recycled the deleted mark wouldn't
be removed resulting in fresh tasks being deleted without reason... and
immediately moved back into the cache where they could be reused again. This
could cause horrendous things to happen in just about anything that used a
scheduler.

ASTERISK-24321 #close
Reported by: Steve Pitts
Review: https://reviewboard.asterisk.org/r/4071/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@425503 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/sched.c