diff --git a/src/utils/TcpReceiver.cpp b/src/utils/TcpReceiver.cpp index 398416e..eff6fe2 100644 --- a/src/utils/TcpReceiver.cpp +++ b/src/utils/TcpReceiver.cpp @@ -102,6 +102,7 @@ void TcpReceiver::executeThread() { } else if (!exitRequested) { if (errno != EBUSY) { DEBUG_FUNCTION_LINE_WARN("Accept failed %d", errno); + cleanupSocket(); } OSSleepTicks(OSMillisecondsToTicks(10)); }