Fix HTTP downloads being disabled after first download (issue #768)

This commit is contained in:
Tim Angus 2025-08-23 11:35:55 +01:00
parent 88918579a3
commit 2d7100dc97

View File

@ -1210,9 +1210,6 @@ void CL_ShutdownAll(qboolean shutdownRef)
if(clc.demorecording)
CL_StopRecord_f();
#ifdef USE_HTTP
CL_HTTP_Shutdown();
#endif
// clear sounds
S_DisableSounds();
// shutdown CGame
@ -2092,7 +2089,6 @@ void CL_DownloadsComplete( void ) {
// if we downloaded with HTTP
if(clc.httpUsed) {
clc.httpUsed = qfalse;
CL_HTTP_Shutdown();
if( clc.disconnectedForHttpDownload ) {
if(clc.downloadRestart) {
FS_Restart(clc.checksumFeed);
@ -3798,6 +3794,10 @@ void CL_Shutdown(char *finalmsg, qboolean disconnect, qboolean quit)
CL_ClearMemory(qtrue);
CL_Snd_Shutdown();
#ifdef USE_HTTP
CL_HTTP_Shutdown();
#endif
Cmd_RemoveCommand ("cmd");
Cmd_RemoveCommand ("configstrings");
Cmd_RemoveCommand ("clientinfo");