diff --git a/loader/src/myutils/TcpReceiver.cpp b/loader/src/myutils/TcpReceiver.cpp index 6cc7244..81bcfc4 100644 --- a/loader/src/myutils/TcpReceiver.cpp +++ b/loader/src/myutils/TcpReceiver.cpp @@ -30,7 +30,7 @@ TcpReceiver::TcpReceiver(int port) TcpReceiver::~TcpReceiver() { exitRequested = true; - if(serverSocket > 0) { + if(serverSocket >= 0) { shutdown(serverSocket, SHUT_RDWR); } }