mirror of
https://github.com/tmux/tmux.git
synced 2025-09-03 06:17:04 +00:00
Drain notifys once at the end of the server loop instead of doing it
from the end of every command queue (which could be nested).
This commit is contained in:
@ -248,10 +248,8 @@ cmdq_continue(struct cmd_q *cmdq)
|
||||
enum cmd_retval retval;
|
||||
int empty;
|
||||
|
||||
cmdq->references++;
|
||||
notify_disable();
|
||||
|
||||
log_debug("continuing cmdq %p: flags %#x (%p)", cmdq, cmdq->flags, c);
|
||||
cmdq->references++;
|
||||
|
||||
empty = TAILQ_EMPTY(&cmdq->queue);
|
||||
if (empty)
|
||||
@ -296,9 +294,7 @@ empty:
|
||||
empty = 1;
|
||||
|
||||
out:
|
||||
notify_enable();
|
||||
cmdq_free(cmdq);
|
||||
|
||||
return (empty);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user