summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-04-04 20:02:35 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-04-04 20:02:35 +0000
commit0e8f4663013537fc05fa58b4545b02eeaeee14a6 (patch)
tree9cf2fd6201281834b307e88f63323640a3f801ba
parentf11a2d8a061eabf836bdbb6184ffb0cd1e41391a (diff)
Connection refused bug is FIXED!!!!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3835 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/socket.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/socket.cpp b/src/socket.cpp
index df018bb47..1b2683257 100644
--- a/src/socket.cpp
+++ b/src/socket.cpp
@@ -303,6 +303,7 @@ bool InspSocket::FlushWriteBuffer()
log(DEBUG,"Write error on socket: %s",strerror(errno));
this->OnError(I_ERR_WRITE);
this->state = I_ERROR;
+ this->ClosePending = true;
return true;
}
}
@@ -335,6 +336,7 @@ bool InspSocket::Timeout(time_t current)
this->OnError(I_ERR_TIMEOUT);
timeout = true;
this->state = I_ERROR;
+ this->ClosePending = true;
return true;
}
return this->FlushWriteBuffer();