mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-20 12:20:12 +00:00
Merged revisions 44168 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r44168 | file | 2006-10-02 13:22:27 -0400 (Mon, 02 Oct 2006) | 2 lines Shrink when current_ioc is unused. It is set to -1 when unused, not 0. (issue #7941 reported by eclubb) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@44169 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -242,7 +242,7 @@ int ast_io_remove(struct io_context *ioc, int *_id)
|
|||||||
ioc->fds[x].events = 0;
|
ioc->fds[x].events = 0;
|
||||||
ioc->fds[x].revents = 0;
|
ioc->fds[x].revents = 0;
|
||||||
ioc->needshrink = 1;
|
ioc->needshrink = 1;
|
||||||
if (!ioc->current_ioc)
|
if (ioc->current_ioc == -1)
|
||||||
io_shrink(ioc);
|
io_shrink(ioc);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user