ref: 543a5bb685d6ddebaabe0edde8baa98012e211dc
parent: 30b8cab042cde9e3d06cf8a286b85a746772aa6a
author: mkf <mkf@cloud9p.org>
date: Wed Jun 5 07:44:38 EDT 2024
flush the socket in cleanup
--- a/srv5.c
+++ b/srv5.c
@@ -50,6 +50,8 @@
dprint("cleanup(%d)\n", gid);
g = (Game*)lookup(games, gid);
+ shutdown(g->sockfd[0], SHUT_RDWR);
+ shutdown(g->sockfd[1], SHUT_RDWR);
close(g->sockfd[0]);
close(g->sockfd[1]);
}