From 609aa390f4b788ba94622e78464837a1838c5463 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 2 Jul 2009 22:38:42 +0000 Subject: [PATCH] reset m_establishing flag and last error when asynchronous connection is established (closes #10838) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61295 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/socket.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/common/socket.cpp b/src/common/socket.cpp index 30c278887a..71cfcc6cce 100644 --- a/src/common/socket.cpp +++ b/src/common/socket.cpp @@ -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: -- 2.45.2