diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-09-11 10:34:19 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-09-11 10:34:19 +0000 |
commit | cb24915afb5410b0fa674af4d8f0849a999e4a0a (patch) | |
tree | 9340c53007aba62ba43e63ffd1ef2b7678ce54eb | |
parent | 2496449155c339c9d6675de643bce04a7fbd304c (diff) |
Minor stylistic improvements.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10515 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/inspsocket.cpp | 15 |
1 files 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; } } |