mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 16:50:14 +00:00
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: https://origsvn.digium.com/svn/asterisk/trunk@91328 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1912,7 +1912,7 @@ static struct ast_channel *ast_waitfor_nandfds_complex(struct ast_channel **c, i
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user