From fde5d20a0a6805e66a26becb0b74d0ddb2cdb962 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 1 Apr 2006 23:40:53 +0000 Subject: Fixes for stability of connects (these didnt make it into trunk!!!) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3795 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/socket.cpp') diff --git a/src/socket.cpp b/src/socket.cpp index e1f0d2c23..767e2c468 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -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; -- cgit v1.2.3