X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bffc1eaaf5095cc89930e6b3ece73991294beddd..236a9de39afa090fdee3cf91cb5364ceca69e3f8:/src/common/socket.cpp diff --git a/src/common/socket.cpp b/src/common/socket.cpp index c02adfc698..0f13466c0c 100644 --- a/src/common/socket.cpp +++ b/src/common/socket.cpp @@ -198,7 +198,7 @@ bool wxSocketBase::Destroy() bool wxSocketBase::Close() { // Interrupt pending waits - InterruptAllWaits(); + InterruptWait(); if (m_socket) { @@ -466,7 +466,7 @@ wxUint32 wxSocketBase::_Write(const void *buffer, wxUint32 nbytes) break; ret = GSocket_Write(m_socket, (const char *)buffer, nbytes); - + if (ret > 0) { total += ret; @@ -653,7 +653,7 @@ bool wxSocketBase::_Wait(long seconds, { m_connected = FALSE; m_establishing = FALSE; - return (flags & GSOCK_LOST_FLAG); + return (flags & GSOCK_LOST_FLAG) != 0; } // Wait more?