From cb24915afb5410b0fa674af4d8f0849a999e4a0a Mon Sep 17 00:00:00 2001 From: w00t Date: Thu, 11 Sep 2008 10:34:19 +0000 Subject: Minor stylistic improvements. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10515 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspsocket.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index 261ede190..fdb1dcf67 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -608,23 +608,24 @@ void BufferedSocket::HandleEvent(EventType et, int errornum) { case ETIMEDOUT: this->OnError(I_ERR_TIMEOUT); - break; + break; case ECONNREFUSED: case 0: this->OnError(this->state == I_CONNECTING ? I_ERR_CONNECT : I_ERR_WRITE); - break; + break; case EADDRINUSE: this->OnError(I_ERR_BIND); - break; + break; case EPIPE: case EIO: this->OnError(I_ERR_WRITE); - break; + break; } + if (this->Instance->SocketCull.find(this) == this->Instance->SocketCull.end()) this->Instance->SocketCull[this] = this; return; - break; + break; case EVENT_READ: if (!this->Poll()) { @@ -632,7 +633,7 @@ void BufferedSocket::HandleEvent(EventType et, int errornum) this->Instance->SocketCull[this] = this; return; } - break; + break; case EVENT_WRITE: if (this->state == I_CONNECTING) { @@ -654,7 +655,7 @@ void BufferedSocket::HandleEvent(EventType et, int errornum) return; } } - break; + break; } } -- cgit v1.2.3