Merged revisions 63828 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r63828 | qwell | 2007-05-10 18:14:55 -0500 (Thu, 10 May 2007) | 4 lines

Fix an issue with trying to kill a thread before it gets created.

Issue 9709, patch by nic_bellamy.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@63830 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.4
Jason Parker 18 years ago
parent 2465ea2cfa
commit c2c91c7fef

@ -2379,7 +2379,8 @@ static int iax2_transmit(struct iax_frame *fr)
iaxq.count++;
AST_LIST_UNLOCK(&iaxq.queue);
/* Wake up the network and scheduler thread */
pthread_kill(netthreadid, SIGURG);
if (netthreadid != AST_PTHREADT_NULL)
pthread_kill(netthreadid, SIGURG);
signal_condition(&sched_lock, &sched_cond);
return 0;
}

Loading…
Cancel
Save