diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-21 19:24:09 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-21 19:24:09 +0000 |
commit | 0c04ea89dbb1516423535b2f5fdadbdab9fe8e58 (patch) | |
tree | 7d599b208f24869822cc1c619a3de755852e0e34 /src/socketengine_select.cpp | |
parent | 32bffd861fd1c8b723ae63f4ea66720fd47e7d0a (diff) |
Set these back to sane operation
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8271 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/socketengine_select.cpp')
-rw-r--r-- | src/socketengine_select.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/socketengine_select.cpp b/src/socketengine_select.cpp index a369cc95a..7ba386812 100644 --- a/src/socketengine_select.cpp +++ b/src/socketengine_select.cpp @@ -37,7 +37,7 @@ bool SelectEngine::AddFd(EventHandler* eh) return false; if (ref[fd]) - DelFd(ref[fd]); + return false; fds[fd] = fd; ref[fd] = eh; @@ -65,6 +65,7 @@ bool SelectEngine::DelFd(EventHandler* eh, bool force) CurrentSetSize--; ref[fd] = NULL; + fds[fd] = 0; ServerInstance->Log(DEBUG,"Remove file descriptor: %d", fd); return true; |