]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commit
SVVM: fully shut down when stopping a server to avoid segfaulting later
authorbones_was_here <bones_was_here@xonotic.au>
Tue, 6 Feb 2024 11:22:06 +0000 (21:22 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Tue, 6 Feb 2024 11:30:23 +0000 (21:30 +1000)
commit30c47b1aff3ac28359c469a40c44ee700c80e814
tree4e3422c7f0bc8e2015613850b4a28547a663648d
parent7b7009740d891a5454c39106459ec9c63b74aa10
SVVM: fully shut down when stopping a server to avoid segfaulting later

Fixes segfaults when functions that check if the progs is loaded (to
avoid crashing) are called after stopping a server.
Example repro: load a map, disconnect, `set sv_cheats 0`.

Fixes wrong SV_Shutdown order: SV_DropClient must be done before
shutting down SVQC because it calls SVQC functions.

Deduplicates SVQC shutdown.

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
sv_main.c