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;