From: Automerge script Date: Mon, 2 Oct 2006 18:01:57 +0000 (+0000) Subject: automerge commit X-Git-Tag: 1.2.13-netsec~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1db6355b212dec66e3ed3361f5e3217c4df6ba37;p=thirdparty%2Fasterisk.git automerge commit git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@44184 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/io.c b/io.c index c19d222c69..c54f4e3060 100644 --- a/io.c +++ b/io.c @@ -247,7 +247,7 @@ int ast_io_remove(struct io_context *ioc, int *_id) ioc->fds[x].events = 0; ioc->fds[x].revents = 0; ioc->needshrink = 1; - if (!ioc->current_ioc) + if (ioc->current_ioc == -1) io_shrink(ioc); return 0; }