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
This commit is contained in:
Guillermo Rodriguez Garcia 2000-03-10 00:20:00 +00:00
parent 5da69e38e6
commit 557e701169
2 changed files with 2 additions and 2 deletions

View File

@ -222,7 +222,7 @@ void GSocket_Shutdown(GSocket *socket)
for (evt = 0; evt < GSOCK_MAX_EVENT; evt++) for (evt = 0; evt < GSOCK_MAX_EVENT; evt++)
socket->m_cbacks[evt] = NULL; socket->m_cbacks[evt] = NULL;
socket->m_detected = 0; socket->m_detected = GSOCK_LOST_FLAG;
_GSocket_Disable_Events(socket); _GSocket_Disable_Events(socket);
} }

View File

@ -201,7 +201,7 @@ void GSocket_Shutdown(GSocket *socket)
for (evt = 0; evt < GSOCK_MAX_EVENT; evt++) for (evt = 0; evt < GSOCK_MAX_EVENT; evt++)
socket->m_cbacks[evt] = NULL; socket->m_cbacks[evt] = NULL;
socket->m_detected = 0; socket->m_detected = GSOCK_LOST_FLAG;
_GSocket_Disable_Events(socket); _GSocket_Disable_Events(socket);
} }