Closed jthak002 closed 6 months ago
@jthak002 I dont think the game was running here as the log states the interrupt has been sent by server to the clients.
The log INFO Moderator has chosen to die.
occurs when the server is interrupted by a SIGINT.
bottom right window shows a client who joined after the game started and as soon as quit was entered on the client, it terminated the server without pressing ctrl + c.
e.SendWithSender(serverPID, &types.Disconnect{}, clientPID)
line 99 of the client/main.go
sends the the disconnect message - maybe in the server we check if the game is running, and if it is we do not accept the client's disconnect message.
possible fix will include commenting out the line, if an exit is premature or configuring the server to intelligently process disconnect messages.
the log output of the player is here: