]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/socket.cpp
Test fixes for cpu eating issue
[user/henk/code/inspircd.git] / src / socket.cpp
index e1f0d2c23ba6783274f3c5a5eb7c0499abf6bc41..767e2c468be3eb61a31484ca96c24db5841eec8f 100644 (file)
@@ -189,8 +189,8 @@ bool InspSocket::DoConnect()
                {
                        log(DEBUG,"Error connect() %d: %s",this->fd,strerror(errno));
                        this->OnError(I_ERR_CONNECT);
-                       this->state = I_ERROR;
                        this->Close();
+                       this->state = I_ERROR;
                        this->fd = -1;
                        this->ClosePending = true;
                        return false;