Just send EOT to client for disconnect

This commit is contained in:
flyingscorpio@clevo 2022-10-26 22:41:36 +02:00
parent 80c5999a5a
commit 5518f3eea7

View file

@ -131,7 +131,7 @@ int main(int argc, char *argv[]) {
/* Disconnect all clients before closing the server */
for (int i = 0; i < MAX_CLIENTS; i++) {
write(clients[i].sockid, "disconnect command", 0); // TODO: decide a disconnect command to send
write(clients[i].sockid, &eot, 1);
disconnect_client(i);
}