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;