From: Cloudwalk Date: Sat, 8 Aug 2020 20:59:18 +0000 (-0400) Subject: (WIP) cmd: Unlock the correct cbuf mutex when quitting X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9991f78699bd84af7154e354c7b14c84ba74c7c1;p=xonotic%2Fdarkplaces.git (WIP) cmd: Unlock the correct cbuf mutex when quitting --- 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);