[asterisk-commits] [svn-commits] trunk r17753 - /trunk/channel.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Apr 6 01:02:38 MST 2006


Author: rizzo
Date: Thu Apr  6 03:02:35 2006
New Revision: 17753

URL: http://svn.digium.com/view/asterisk?rev=17753&view=rev
Log:
the fix for bug #6399 makes sense. thanks wrmem for the report.


Modified:
    trunk/channel.c

Modified: trunk/channel.c
URL: http://svn.digium.com/view/asterisk/trunk/channel.c?rev=17753&r1=17752&r2=17753&view=diff
==============================================================================
--- trunk/channel.c (original)
+++ trunk/channel.c Thu Apr  6 03:02:35 2006
@@ -1599,7 +1599,8 @@
 	for (x=0; x<n; x++)
 		ast_clear_flag(c[x], AST_FLAG_BLOCKING);
 	if (res < 0) { /* Simulate a timeout if we were interrupted */
-		*ms = (errno != EINTR) ? -1 : 0;
+		if (errno != EINTR)
+			*ms = -1;
 		return NULL;
 	}
 	if (whentohangup) {   /* if we have a timeout, check who expired */

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

svn-commits mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/svn-commits


More information about the asterisk-commits mailing list