From e12a6ddbdddc7464421a55e79292f6393d6f4d63 Mon Sep 17 00:00:00 2001 From: flagarde Date: Fri, 11 Feb 2022 12:50:55 +0800 Subject: [PATCH] Update IXSocketConnect.cpp (#356) Part of the code is never executed warning raised by clang --- ixwebsocket/IXSocketConnect.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ixwebsocket/IXSocketConnect.cpp b/ixwebsocket/IXSocketConnect.cpp index f191eae8..59ed76d4 100644 --- a/ixwebsocket/IXSocketConnect.cpp +++ b/ixwebsocket/IXSocketConnect.cpp @@ -91,10 +91,6 @@ namespace ix return -1; } } - - Socket::closeSocket(fd); - errMsg = "connect timed out after 60 seconds"; - return -1; } int SocketConnect::connect(const std::string& hostname,