[asterisk-commits] file: trunk r91328 - /trunk/main/channel.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Dec 5 22:37:37 CST 2007
Author: file
Date: Wed Dec 5 22:37:36 2007
New Revision: 91328
URL: http://svn.digium.com/view/asterisk?view=rev&rev=91328
Log:
Instead of iterating through the entire epoll events array just look at the ones that will actually contain data. (props to eliel on IRC for this)
Modified:
trunk/main/channel.c
Modified: trunk/main/channel.c
URL: http://svn.digium.com/view/asterisk/trunk/main/channel.c?view=diff&rev=91328&r1=91327&r2=91328
==============================================================================
--- trunk/main/channel.c (original)
+++ trunk/main/channel.c Wed Dec 5 22:37:36 2007
@@ -1912,7 +1912,7 @@
return winner;
}
- for (i = 0; i < 25; i++) {
+ for (i = 0; i < res; i++) {
struct ast_epoll_data *aed = ev[i].data.ptr;
if (!ev[i].events || !aed)
More information about the asterisk-commits
mailing list