iaxs[callno] may go away if we try to avoid the deadlock

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@44760 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.4
Joshua Colp 19 years ago
parent 8a7f8f5592
commit f11d155547

@ -1710,11 +1710,12 @@ static int iax2_predestroy(int callno)
static void iax2_destroy(int callno)
{
struct chan_iax2_pvt *pvt = iaxs[callno];
struct chan_iax2_pvt *pvt;
struct iax_frame *cur;
struct ast_channel *owner;
retry:
pvt = iaxs[callno];
gettimeofday(&lastused[callno], NULL);
owner = pvt ? pvt->owner : NULL;

Loading…
Cancel
Save