From 9991f78699bd84af7154e354c7b14c84ba74c7c1 Mon Sep 17 00:00:00 2001 From: Cloudwalk Date: Sat, 8 Aug 2020 16:59:18 -0400 Subject: [PATCH] (WIP) cmd: Unlock the correct cbuf mutex when quitting --- cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd.c b/cmd.c index c2f370dc..0ce84402 100644 --- 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); -- 2.39.2