summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/socket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socket.cpp b/src/socket.cpp
index f441ddb55..4e8c88663 100644
--- a/src/socket.cpp
+++ b/src/socket.cpp
@@ -215,12 +215,12 @@ bool InspSocket::Poll()
{
case I_CONNECTING:
this->SetState(I_CONNECTED);
- return this->OnConnected();
/* Our socket was in write-state, so delete it and re-add it
* in read-state.
*/
SE->DelFd(this->fd);
SE->AddFd(this->fd,true,X_ESTAB_MODULE);
+ return this->OnConnected();
break;
case I_LISTENING:
length = sizeof (client);