we need to reset m_connected flag as well as setting m_closed when the connection is lost

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61312 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-07-03 14:29:56 +00:00
parent f46a01651a
commit 9038fc94a7

View File

@@ -1626,7 +1626,9 @@ void wxSocketBase::OnRequest(wxSocketNotify notification)
case wxSOCKET_LOST: case wxSOCKET_LOST:
flag = wxSOCKET_LOST_FLAG; 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; m_closed = true;
break; break;