[svn-commits] qwell: trunk r63832 - in /trunk: ./ channels/chan_iax2.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Thu May 10 16:16:34 MST 2007


Author: qwell
Date: Thu May 10 18:16:33 2007
New Revision: 63832

URL: http://svn.digium.com/view/asterisk?view=rev&rev=63832
Log:
Merged revisions 63830 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r63830 | qwell | 2007-05-10 18:15:37 -0500 (Thu, 10 May 2007) | 12 lines

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.

........

................

Modified:
    trunk/   (props changed)
    trunk/channels/chan_iax2.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_iax2.c?view=diff&rev=63832&r1=63831&r2=63832
==============================================================================
--- trunk/channels/chan_iax2.c (original)
+++ trunk/channels/chan_iax2.c Thu May 10 18:16:33 2007
@@ -2506,7 +2506,8 @@
 	AST_LIST_INSERT_TAIL(&queue, fr, list);
 	AST_LIST_UNLOCK(&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;
 }



More information about the svn-commits mailing list