diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-04-04 20:02:35 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-04-04 20:02:35 +0000 |
commit | 0e8f4663013537fc05fa58b4545b02eeaeee14a6 (patch) | |
tree | 9cf2fd6201281834b307e88f63323640a3f801ba /src | |
parent | f11a2d8a061eabf836bdbb6184ffb0cd1e41391a (diff) |
Connection refused bug is FIXED!!!!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3835 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/socket.cpp | 2 |
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(); |