// this Initialize() will be undone by wxSocketModule::OnExit(), all
// the other calls to it should be matched by a call to Shutdown()
if (!Initialize())
+ {
wxLogError("Cannot initialize wxSocketBase");
+ }
}
}
case wxSOCKET_LOST:
flag = wxSOCKET_LOST_FLAG;
- // if we lost the connection the socket is now closed
+ // if we lost the connection the socket is now closed and not
+ // connected any more
+ m_connected = false;
m_closed = true;
break;