Bugfix:
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:
parent
5da69e38e6
commit
557e701169
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user