From 557e701169014aa7ad0dc7ad998f89be142397ec Mon Sep 17 00:00:00 2001 From: Guillermo Rodriguez Garcia Date: Fri, 10 Mar 2000 00:20:00 +0000 Subject: [PATCH] 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 --- src/msw/gsocket.c | 2 +- src/unix/gsocket.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/msw/gsocket.c b/src/msw/gsocket.c index 66dc5acfc6..db3fe41504 100644 --- a/src/msw/gsocket.c +++ b/src/msw/gsocket.c @@ -222,7 +222,7 @@ void GSocket_Shutdown(GSocket *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); } diff --git a/src/unix/gsocket.c b/src/unix/gsocket.c index ce7cf36299..a43156c9a5 100644 --- a/src/unix/gsocket.c +++ b/src/unix/gsocket.c @@ -201,7 +201,7 @@ void GSocket_Shutdown(GSocket *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); } -- 2.45.2