projects
/
onyx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
239571e
)
bugfix with non-ending tcp server
author
Brendan Hansen
<brendan.f.hansen@gmail.com>
Thu, 17 Nov 2022 04:02:23 +0000
(22:02 -0600)
committer
Brendan Hansen
<brendan.f.hansen@gmail.com>
Thu, 17 Nov 2022 04:02:23 +0000
(22:02 -0600)
core/net/tcp.onyx
patch
|
blob
|
history
diff --git
a/core/net/tcp.onyx
b/core/net/tcp.onyx
index f9dc04450e0f16e4ef4964de5f83268520cdb4cf..18864fb59006bd4a764b11a241f76a2a39f28b04 100644
(file)
--- 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
tru
e;
+ return
server.aliv
e;
}
clients_with_messages := wait_to_get_client_messages(server);