[svn-commits] qwell: branch 1.2 r63828 -
/branches/1.2/channels/chan_iax2.c
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Thu May 10 16:14:55 MST 2007
Author: qwell
Date: Thu May 10 18:14:55 2007
New Revision: 63828
URL: http://svn.digium.com/view/asterisk?view=rev&rev=63828
Log:
Fix an issue with trying to kill a thread before it gets created.
Issue 9709, patch by nic_bellamy.
Modified:
branches/1.2/channels/chan_iax2.c
Modified: branches/1.2/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_iax2.c?view=diff&rev=63828&r1=63827&r2=63828
==============================================================================
--- branches/1.2/channels/chan_iax2.c (original)
+++ branches/1.2/channels/chan_iax2.c Thu May 10 18:14:55 2007
@@ -2563,7 +2563,8 @@
iaxq.count++;
ast_mutex_unlock(&iaxq.lock);
/* Wake up the network thread */
- pthread_kill(netthreadid, SIGURG);
+ if (netthreadid != AST_PTHREADT_NULL)
+ pthread_kill(netthreadid, SIGURG);
return 0;
}
More information about the svn-commits
mailing list