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)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91328 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
67e82aa1ba
commit
1b34ebf274
1 changed files with 1 additions and 1 deletions
|
@ -1912,7 +1912,7 @@ static struct ast_channel *ast_waitfor_nandfds_complex(struct ast_channel **c, i
|
||||||
return winner;
|
return winner;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < 25; i++) {
|
for (i = 0; i < res; i++) {
|
||||||
struct ast_epoll_data *aed = ev[i].data.ptr;
|
struct ast_epoll_data *aed = ev[i].data.ptr;
|
||||||
|
|
||||||
if (!ev[i].events || !aed)
|
if (!ev[i].events || !aed)
|
||||||
|
|
Reference in a new issue