summaryrefslogtreecommitdiff
path: root/src/socket.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-04-01 23:40:53 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-04-01 23:40:53 +0000
commitfde5d20a0a6805e66a26becb0b74d0ddb2cdb962 (patch)
treebaa1bfcc17dc324f86b4726c2e5d685f8e5bf247 /src/socket.cpp
parent239196ce7df222ea8331f9b755860b7d697a7531 (diff)
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
Diffstat (limited to 'src/socket.cpp')
-rw-r--r--src/socket.cpp2
1 files changed, 1 insertions, 1 deletions
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;