]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/socket.cpp
Added wxVector::swap().
[wxWidgets.git] / src / common / socket.cpp
index 3a9de3950c3d944d34514680210174e4fb321020..000d89b4648c4371bbacb81f1523136f917d2f3b 100644 (file)
@@ -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;