]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/socket.cpp
don't call release() on non-owned buffer in wchar_t build (closes #10964); copy utf8_...
[wxWidgets.git] / src / common / socket.cpp
index 3a9de3950c3d944d34514680210174e4fb321020..032b8f094e08960a8738b816971175a4e337463f 100644 (file)
@@ -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;