From: Vadim Zeitlin Date: Fri, 3 Jul 2009 14:29:56 +0000 (+0000) Subject: we need to reset m_connected flag as well as setting m_closed when the connection... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9038fc94a7cca2f05f5a79ac22d6129b346550b0 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 --- diff --git a/src/common/socket.cpp b/src/common/socket.cpp index 3a9de3950c..032b8f094e 100644 --- a/src/common/socket.cpp +++ b/src/common/socket.cpp @@ -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;