diff --git a/ixwebsocket/IXSocketConnect.cpp b/ixwebsocket/IXSocketConnect.cpp index 2ccc36a7..402f1909 100644 --- a/ixwebsocket/IXSocketConnect.cpp +++ b/ixwebsocket/IXSocketConnect.cpp @@ -89,7 +89,7 @@ namespace ix { closeSocket(fd); errMsg = "Cancelled"; - return false; + return -1; } select(fd + 1, nullptr, &wfds, &efds, &timeout);