]> 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 f76543562152235cade8d2cce675ca4e2d3e49f6..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;
 }
@@ -578,8 +581,10 @@ bool InspSocket::Poll()
 #else
                        this->SetState(I_CONNECTED);
 #endif
+                       Instance->Log(DEBUG,"Inspsocket I_CONNECTING state");
                        if (Instance->Config->GetIOHook(this))
                        {
+                               Instance->Log(DEBUG,"Hook for raw connect");
                                try
                                {
                                        Instance->Config->GetIOHook(this)->OnRawSocketConnect(this->fd);