[Asterisk-cvs] asterisk channel.c,1.191,1.192

markster at lists.digium.com markster at lists.digium.com
Sun Apr 24 18:04:46 CDT 2005


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv10845

Modified Files:
	channel.c 
Log Message:
If poll returns 0, force *ms to 0


Index: channel.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channel.c,v
retrieving revision 1.191
retrieving revision 1.192
diff -u -d -r1.191 -r1.192
--- channel.c	22 Apr 2005 13:11:34 -0000	1.191
+++ channel.c	24 Apr 2005 22:54:50 -0000	1.192
@@ -1126,6 +1126,12 @@
 #endif			
 		}
 		return NULL;
+        } else {
+        	/* If no fds signalled, then timeout. So set ms = 0
+		   since we may not have an exact timeout.
+		*/
+		if (res == 0)
+			*ms = 0;
 	}
 
 	if (havewhen)




More information about the svn-commits mailing list