diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-12-06 04:37:36 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-12-06 04:37:36 +0000 |
commit | 1b34ebf2749c64570441c597ab127058d3119924 (patch) | |
tree | 5543a8d70d797dd3cad20604655be29b5fc15a99 /main/channel.c | |
parent | 67e82aa1ba7dbf0913ae96ed9fe401f9257c0dd7 (diff) |
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
Diffstat (limited to 'main/channel.c')
-rw-r--r-- | main/channel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/channel.c b/main/channel.c index bb3eb355e..769df5cb6 100644 --- a/main/channel.c +++ b/main/channel.c @@ -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) |