]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
(WIP) cmd: Unlock the correct cbuf mutex when quitting
authorCloudwalk <cloudwalk009@gmail.com>
Sat, 8 Aug 2020 20:59:18 +0000 (16:59 -0400)
committerCloudwalk <cloudwalk009@gmail.com>
Sat, 8 Aug 2020 20:59:18 +0000 (16:59 -0400)
cmd.c

diff --git a/cmd.c b/cmd.c
index c2f370dc3e10ad3d85fcc6bec214a453b6dc0815..0ce844020a9f7f2dd35c78f6145fc6d19bbc92a0 100644 (file)
--- a/cmd.c
+++ b/cmd.c
@@ -1742,7 +1742,7 @@ void Cmd_Shutdown(void)
        {
                cmd_state_t *cmd = cmd_iter->cmd;
 
-               if (cmd->text_mutex)
+               if (cmd->cbuf->lock)
                {
                        // we usually have this locked when we get here from Host_Quit_f
                        Cbuf_Unlock(cmd->cbuf);