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:
@@ -1626,7 +1626,9 @@ void wxSocketBase::OnRequest(wxSocketNotify notification)
|
||||
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;
|
||||
|
||||
|
Reference in New Issue
Block a user