From 9038fc94a7cca2f05f5a79ac22d6129b346550b0 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 3 Jul 2009 14:29:56 +0000 Subject: [PATCH] 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 --- src/common/socket.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.45.2