]> git.saurik.com Git - wxWidgets.git/commitdiff
we need to reset m_connected flag as well as setting m_closed when the connection...
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 3 Jul 2009 14:29:56 +0000 (14:29 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 3 Jul 2009 14:29:56 +0000 (14:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61312 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/socket.cpp

index 3a9de3950c3d944d34514680210174e4fb321020..032b8f094e08960a8738b816971175a4e337463f 100644 (file)
@@ -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;