]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
automerge commit
authorAutomerge script <automerge@asterisk.org>
Mon, 2 Oct 2006 18:01:57 +0000 (18:01 +0000)
committerAutomerge script <automerge@asterisk.org>
Mon, 2 Oct 2006 18:01:57 +0000 (18:01 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@44184 65c4cc65-6c06-0410-ace0-fbb531ad65f3

io.c

diff --git a/io.c b/io.c
index c19d222c69577f855d9cb7e6ba0b5d4f3e7661d5..c54f4e3060a779beb96bcda1af4c970f829c484b 100644 (file)
--- 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;
                }