Clean up socket on error

This commit is contained in:
Maschell 2022-10-07 15:47:59 +02:00
parent 1984203bed
commit 6a87b9e107

View File

@ -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));
}