X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bffc1eaaf5095cc89930e6b3ece73991294beddd..f5ba273ecd799f652736ce2bc830283787302a56:/src/common/socket.cpp?ds=sidebyside diff --git a/src/common/socket.cpp b/src/common/socket.cpp index c02adfc698..89ac01b97d 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) { @@ -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?