preventing server from crashing on client crash

This commit is contained in:
Václav Šmejkal 2024-01-24 18:29:02 +01:00
parent 42f406f6b6
commit 7d37daa32d
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -398,7 +398,7 @@ void *why2_communicate_thread(void *arg)
raw_ptr = NULL;
}
why2_send_socket(WHY2_CHAT_CODE_SSQC, WHY2_CHAT_SERVER_USERNAME, connection);
if (exiting) why2_send_socket(WHY2_CHAT_CODE_SSQC, WHY2_CHAT_SERVER_USERNAME, connection);
printf("User disconnected.\t%d\n", connection);