Fixed outbounds

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2337 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2005-12-12 13:11:24 +00:00
parent 2554ac4d3f
commit c3c61c00b3

View File

@ -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);