]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/inspsocket.cpp
publish "JSON-RPC" interface
[user/henk/code/inspircd.git] / src / inspsocket.cpp
index c2b80a225d7d2d73dd6726bc7e867330417ad573..f29366c73bad71ab7b400309f0b939f0ff9feabc 100644 (file)
@@ -359,6 +359,9 @@ void InspSocket::Close()
                this->OnClose();
                shutdown(this->fd,2);
                close(this->fd);
+
+               if (Instance->SocketCull.find(this) == Instance->SocketCull.end())
+                       Instance->SocketCull[this] = this;
        }
        errno = save;
 }