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)

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to