From 0e8f4663013537fc05fa58b4545b02eeaeee14a6 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 4 Apr 2006 20:02:35 +0000 Subject: Connection refused bug is FIXED!!!! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3835 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socket.cpp | 2 ++ 1 file changed, 2 insertions(+) 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(); -- cgit v1.2.3