From fc5e88534c29a1a67a05f90bc6ce20504fd8fa69 Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Wed, 16 Nov 2022 22:02:23 -0600 Subject: [PATCH] bugfix with non-ending tcp server --- core/net/tcp.onyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.25.1