aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-10-21 20:16:40 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-10-21 20:16:40 +0000
commitd69b364b5f043cec5ff0c160a13c144c3dc4b035 (patch)
treec572caeeca0c6b1d0318d656119c466b28287331
parent90ad041fa581a907a6efd1d9764b80f37d373447 (diff)
downloadrtmux-d69b364b5f043cec5ff0c160a13c144c3dc4b035.tar.gz
rtmux-d69b364b5f043cec5ff0c160a13c144c3dc4b035.tar.bz2
rtmux-d69b364b5f043cec5ff0c160a13c144c3dc4b035.zip
Don't try to unsuspend a client if it isn't suspended.
-rw-r--r--server-msg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/server-msg.c b/server-msg.c
index 248b94d4..02ceb078 100644
--- a/server-msg.c
+++ b/server-msg.c
@@ -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);