From f9beda08323beddac2b7b362371c5d4eca374f34 Mon Sep 17 00:00:00 2001 From: fusion32 Date: Mon, 30 Mar 2026 15:54:52 -0300 Subject: missing NEWLINE on non-patched fields + fix accept error on shutdown --- src/communication.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/communication.cc') diff --git a/src/communication.cc b/src/communication.cc index 2bd727b..2de5e04 100644 --- a/src/communication.cc +++ b/src/communication.cc @@ -1532,9 +1532,13 @@ bool OpenSocket(void){ int AcceptorThreadLoop(void *Unused){ AcceptorThreadID = gettid(); print(1, "Warte auf Clients...\n"); - while(GameRunning()){ + while(true){ int Socket = accept(TCPSocket, NULL, NULL); if(Socket == -1){ + if(!GameRunning()){ + break; + } + error("AcceptorThreadLoop: Fehler %d beim Accept.\n", errno); continue; } -- cgit v1.2.3