X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f46a01651ac91690b47f9606ae53530fbf73829f..2a392e2d16cc2fde3463f1bac95f424ac35b40b7:/src/common/socket.cpp diff --git a/src/common/socket.cpp b/src/common/socket.cpp index 3a9de3950c..000d89b464 100644 --- a/src/common/socket.cpp +++ b/src/common/socket.cpp @@ -819,7 +819,9 @@ void wxSocketBase::Init() // this Initialize() will be undone by wxSocketModule::OnExit(), all // the other calls to it should be matched by a call to Shutdown() if (!Initialize()) + { wxLogError("Cannot initialize wxSocketBase"); + } } } @@ -1626,7 +1628,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;