]> git.saurik.com Git - wxWidgets.git/commitdiff
set m_closed to true when we get connection lost notification
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 27 Dec 2008 11:39:46 +0000 (11:39 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 27 Dec 2008 11:39:46 +0000 (11:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57585 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/socket.cpp

index 20edac4d972b1bf93055be53f524c65521c238df..a02d9e968218b8d5b9a5f01cd131a79b156c31a8 100644 (file)
@@ -1486,6 +1486,10 @@ void wxSocketBase::OnRequest(wxSocketNotify notification)
             wxFAIL_MSG( "unknown wxSocket notification" );
     }
 
+    // if we lost the connection the socket is now closed
+    if ( notification == wxSOCKET_LOST )
+        m_closed = true;
+
     // remember the events which were generated for this socket, we're going to
     // use this in DoWait()
     m_eventsgot |= flag;