Fix a crash in pjnath when starting an ICE connectivity check and immediately destroy...
authorJoshua Colp <jcolp@digium.com>
Wed, 18 Jul 2012 15:15:41 +0000 (15:15 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 18 Jul 2012 15:15:41 +0000 (15:15 +0000)
commit8401e813833a6ef09073325409cd65b6840943b3
tree0687ba05feda6bf32ab1cbc51d8fc6cd96007582
parentcbdb2dbb0e25f7ab23379b02467b055e263d345b
Fix a crash in pjnath when starting an ICE connectivity check and immediately destroying the ICE session.

The initial ICE connectivity check is scheduled as a timer item that is to be executed immediately. It is possible for this timer item to start executing while the ICE session it is working on is destroyed. To reduce the chance of this any timer items that need to be immediately executed will be executed within the thread that has started the initial ICE connectivity check.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@370177 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_rtp_asterisk.c