summaryrefslogtreecommitdiffstats
path: root/cmd-wait-for.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd-wait-for.c')
-rw-r--r--cmd-wait-for.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-wait-for.c b/cmd-wait-for.c
index 396548a7..33600eda 100644
--- a/cmd-wait-for.c
+++ b/cmd-wait-for.c
@@ -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);
}