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); }