From 437a8892a107139e9f808f0a11792a56a55b4e25 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 27 Dec 2008 11:39:46 +0000 Subject: [PATCH] set m_closed to true when we get connection lost notification git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57585 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/socket.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/socket.cpp b/src/common/socket.cpp index 20edac4d97..a02d9e9682 100644 --- a/src/common/socket.cpp +++ b/src/common/socket.cpp @@ -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; -- 2.45.2