diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-10-21 20:16:41 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-10-21 20:16:41 +0000 |
commit | e66428b9ad43022b35294758bfc25b1d033ff934 (patch) | |
tree | 0a421f42b6a2cd47de7d45a0f58dc849c652576e /usr.bin/tmux | |
parent | 78dfafc8ede858a0b7f036e6c190607741072f08 (diff) |
Don't try to unsuspend a client if it isn't suspended.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r-- | usr.bin/tmux/server-msg.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/server-msg.c b/usr.bin/tmux/server-msg.c index 761cbf66a32..4d8e851ecb7 100644 --- a/usr.bin/tmux/server-msg.c +++ b/usr.bin/tmux/server-msg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server-msg.c,v 1.23 2009/10/10 09:46:11 nicm Exp $ */ +/* $OpenBSD: server-msg.c,v 1.24 2009/10/21 20:16:40 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -101,6 +101,8 @@ server_msg_dispatch(struct client *c) if (datalen != 0) fatalx("bad MSG_WAKEUP size"); + if (!(c->flags & CLIENT_SUSPENDED)) + break; c->flags &= ~CLIENT_SUSPENDED; tty_start_tty(&c->tty); server_redraw_client(c); |