GSocket_Shutdown sets m_detected to GSOCK_LOST_FLAG.
This avoids that Wait operations from wxSocket get caught in an endless
loop, if called after wxSocketBase::Close(). Was breaking IPC.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6573
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
for (evt = 0; evt < GSOCK_MAX_EVENT; evt++)
socket->m_cbacks[evt] = NULL;
- socket->m_detected = 0;
+ socket->m_detected = GSOCK_LOST_FLAG;
_GSocket_Disable_Events(socket);
}
for (evt = 0; evt < GSOCK_MAX_EVENT; evt++)
socket->m_cbacks[evt] = NULL;
- socket->m_detected = 0;
+ socket->m_detected = GSOCK_LOST_FLAG;
_GSocket_Disable_Events(socket);
}