]> git.saurik.com Git - wxWidgets.git/commitdiff
reset m_establishing flag and last error when asynchronous connection is established...
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 2 Jul 2009 22:38:42 +0000 (22:38 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 2 Jul 2009 22:38:42 +0000 (22:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61295 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/socket.cpp

index 30c278887a5aeac0e9ee53a0fdf4a5aa0d4f56f3..71cfcc6cce9d11dd35746b98bf5a942e49cacf95 100644 (file)
@@ -1610,6 +1610,11 @@ void wxSocketBase::OnRequest(wxSocketNotify notification)
 
             // we're now successfully connected
             m_connected = true;
+            m_establishing = false;
+
+            // error was previously set to wxSOCKET_WOULDBLOCK, but this is not
+            // the case any longer
+            SetError(wxSOCKET_NOERROR);
             break;
 
         case wxSOCKET_LOST: