diff --git a/src/common/socket.cpp b/src/common/socket.cpp index 1eefad523f..9436c636b6 100644 --- a/src/common/socket.cpp +++ b/src/common/socket.cpp @@ -1139,7 +1139,8 @@ bool wxSocketClient::WaitOnConnect(long seconds, long milliseconds) if (!m_establishing || !m_socket) // No connection in progress return FALSE; - return _Wait(seconds, milliseconds, GSOCK_CONNECTION_FLAG); + return _Wait(seconds, milliseconds, GSOCK_CONNECTION_FLAG | + GSOCK_LOST_FLAG); } // ==========================================================================