summaryrefslogtreecommitdiff
path: root/src/socket.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-26 21:08:32 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-26 21:08:32 +0000
commit320cfcc36374cd247ae1c3b30dab8b9b2e5acd67 (patch)
tree2ecbf9e2a544cf83fc3923844d6912b53b6b9c6c /src/socket.cpp
parentb3bb66ac6aac0316c68cd84868879e37d4b0690a (diff)
Tweaks to closed socket detection
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3351 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/socket.cpp')
-rw-r--r--src/socket.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/socket.cpp b/src/socket.cpp
index 949cc44ac..fe6516bb5 100644
--- a/src/socket.cpp
+++ b/src/socket.cpp
@@ -303,8 +303,6 @@ bool InspSocket::Poll()
int incoming = -1;
bool n = true;
- log(DEBUG,"InspSocket::Poll()");
-
switch (this->state)
{
case I_RESOLVING:
@@ -312,7 +310,7 @@ bool InspSocket::Poll()
return this->DoResolve();
break;
case I_CONNECTING:
- log(DEBUG,"State = I_CONNECTED");
+ log(DEBUG,"State = I_CONNECTING");
this->SetState(I_CONNECTED);
/* Our socket was in write-state, so delete it and re-add it
* in read-state.
@@ -329,9 +327,7 @@ bool InspSocket::Poll()
return true;
break;
case I_CONNECTED:
- log(DEBUG,"State = I_CONNECTED");
n = this->OnDataReady();
- log(DEBUG,"State return: %d",(int)n);
/* Flush any pending, but not till after theyre done with the event
* so there are less write calls involved. */
this->FlushWriteBuffer();