summaryrefslogtreecommitdiff
path: root/src/socket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/socket.cpp')
-rw-r--r--src/socket.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/socket.cpp b/src/socket.cpp
index cb019a3c2..48a58db0b 100644
--- a/src/socket.cpp
+++ b/src/socket.cpp
@@ -115,6 +115,7 @@ char* InspSocket::Read()
}
else
{
+ log(DEBUG,"EOF or error on socket");
return NULL;
}
}
@@ -166,6 +167,7 @@ bool InspSocket::Poll()
switch (this->state)
{
case I_CONNECTING:
+ this->SetState(I_CONNECTED);
return this->OnConnected();
break;
case I_LISTENING:
@@ -184,6 +186,7 @@ bool InspSocket::Poll()
void InspSocket::SetState(InspSocketState s)
{
+ log(DEBUG,"Socket state change");
this->state = s;
}