From: Brendan Hansen Date: Thu, 17 Nov 2022 04:02:23 +0000 (-0600) Subject: bugfix with non-ending tcp server X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=fc5e88534c29a1a67a05f90bc6ce20504fd8fa69;p=onyx.git bugfix with non-ending tcp server --- diff --git a/core/net/tcp.onyx b/core/net/tcp.onyx index f9dc0445..18864fb5 100644 --- a/core/net/tcp.onyx +++ b/core/net/tcp.onyx @@ -246,7 +246,7 @@ tcp_server_pulse :: (use server: ^TCP_Server) -> bool { // This is bad because if the pulse_time_ms is large, the server // will have a unnecessary delay for the first client to connect. os.sleep(pulse_time_ms); - return true; + return server.alive; } clients_with_messages := wait_to_get_client_messages(server);