diff options
| author | 2007-10-21 19:11:51 +0000 | |
|---|---|---|
| committer | 2007-10-21 19:11:51 +0000 | |
| commit | cf7986271b75de04b926ca8ff467305099408a68 (patch) | |
| tree | 8cca39f52f7515f491b9dbcce520f4e74b263165 /src/socketengine_iocp.cpp | |
| parent | 1.1.14+PepperJack release (diff) | |
Change how the socket engines work when you addfd on an fd that already exists.
the only SANE outcome is that youve forgotten to DelFd, so it does this for you.
git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8270 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/socketengine_iocp.cpp')
| -rw-r--r-- | src/socketengine_iocp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socketengine_iocp.cpp b/src/socketengine_iocp.cpp index d3947c7a7..6a9490050 100644 --- a/src/socketengine_iocp.cpp +++ b/src/socketengine_iocp.cpp @@ -56,7 +56,7 @@ bool IOCPEngine::AddFd(EventHandler* eh) /* Already an entry here */ if (ref[fake_fd]) - return false; + DelFd(ref[fake_fd]); /* are we a listen socket? */ getsockopt(eh->GetFd(), SOL_SOCKET, SO_ACCEPTCONN, (char*)&is_accept, &opt_len); |
