From 670052d9de454061d35f55d14234c56187c54445 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 4 Apr 2006 20:05:34 +0000 Subject: More verbose output on connection refused backport of previous fix git-svn-id: http://svn.inspircd.org/repository/branches/1_0_stable@3836 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socket.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/socket.cpp') diff --git a/src/socket.cpp b/src/socket.cpp index 930772eb5..e3248d5be 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -302,6 +302,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; } } @@ -334,6 +335,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.3.1-10-gc9f91