diff options
author | 2018-11-07 07:58:16 +0000 | |
---|---|---|
committer | 2018-11-07 07:58:16 +0000 | |
commit | a9adeebdf0313db2537f496199aa313a1c9f8d4d (patch) | |
tree | bca128db753e984aca364d73b3060e66dca38d40 /usr.bin/tmux/cmd-wait-for.c | |
parent | Print SSLeay, OpenSSL, and LibreSSL version strings. Make client (diff) | |
download | wireguard-openbsd-a9adeebdf0313db2537f496199aa313a1c9f8d4d.tar.xz wireguard-openbsd-a9adeebdf0313db2537f496199aa313a1c9f8d4d.zip |
There is no reason wait-for has to be restricted to outside tmux.
Diffstat (limited to 'usr.bin/tmux/cmd-wait-for.c')
-rw-r--r-- | usr.bin/tmux/cmd-wait-for.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/cmd-wait-for.c b/usr.bin/tmux/cmd-wait-for.c index ba869388a69..63f160ffc93 100644 --- a/usr.bin/tmux/cmd-wait-for.c +++ b/usr.bin/tmux/cmd-wait-for.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-wait-for.c,v 1.16 2016/10/16 19:04:05 nicm Exp $ */ +/* $OpenBSD: cmd-wait-for.c,v 1.17 2018/11/07 07:58:16 nicm Exp $ */ /* * Copyright (c) 2013 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -170,7 +170,7 @@ cmd_wait_for_wait(struct cmdq_item *item, const char *name, struct client *c = item->client; struct wait_item *wi; - if (c == NULL || c->session != NULL) { + if (c == NULL) { cmdq_error(item, "not able to wait"); return (CMD_RETURN_ERROR); } @@ -198,7 +198,7 @@ cmd_wait_for_lock(struct cmdq_item *item, const char *name, { struct wait_item *wi; - if (item->client == NULL || item->client->session != NULL) { + if (item->client == NULL) { cmdq_error(item, "not able to lock"); return (CMD_RETURN_ERROR); } |