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
This commit is contained in:
parent
3814f667a0
commit
609aa390f4
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user