- Added SV_Shutdown to Linux signal handler to ensure that clients don't hang when server gets killed, as suggested by Tony J. White
- Added newline to final message sent to clients. - Added check for whether client is running at all before CL_Shutdown runs through.
This commit is contained in:
1 parent
2583351211
commit
1847c321f0
3 files changed
+6
-1
No files matched your search
@@ -646,7 +646,7 @@ void SV_FinalMessage( char *message ) {
|
||||
if (cl->state >= CS_CONNECTED) {
|
||||
// don't send a disconnect to a local client
|
||||
if ( cl->netchan.remoteAddress.type != NA_LOOPBACK ) {
|
||||
SV_SendServerCommand( cl, "print \"%s\"\n", message );
|
||||
SV_SendServerCommand( cl, "print \"%s\n\"\n", message );
|
||||
SV_SendServerCommand( cl, "disconnect" );
|
||||
}
|
||||
// force a snapshot to be sent
|
||||
|
||||
Reference in new issue
Block a user