]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_main.c
fixed very annoying '5 second timeout' bug in Host_ShutdownServer (the local client...
[xonotic/darkplaces.git] / cl_main.c
index b861dc3be1709a31112cf8e1026b68d277f324a0..511aa1be86b1e65d0b70bfdcd88a2519739e26a4 100644 (file)
--- a/cl_main.c
+++ b/cl_main.c
@@ -159,6 +159,8 @@ void CL_Disconnect(void)
        if (cls.state == ca_dedicated)
                return;
 
+       Con_DPrintf("CL_Disconnect\n");
+
 // stop sounds (especially looping!)
        S_StopAllSounds (true);
 
@@ -184,13 +186,6 @@ void CL_Disconnect(void)
                SZ_Clear(&cls.message);
                NetConn_Close(cls.netcon);
                cls.netcon = NULL;
-               // if running a local server, shut it down
-               if (sv.active)
-               {
-                       // prevent this code from executing again during Host_ShutdownServer
-                       cls.state = ca_disconnected;
-                       Host_ShutdownServer(false);
-               }
        }
        cls.state = ca_disconnected;