]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/socket.cpp
More verbose error output
[user/henk/code/inspircd.git] / src / socket.cpp
index df018bb4749418474ebdc501134f4dadcccdf2e5..1b2683257d4bd471e4d7bb92afccdac7bafa5c88 100644 (file)
@@ -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();