version 1.19, 2020/04/13 08:26:27 |
version 1.20, 2020/04/13 10:59:58 |
|
|
cmd_wait_for_wait(struct cmdq_item *item, const char *name, |
cmd_wait_for_wait(struct cmdq_item *item, const char *name, |
struct wait_channel *wc) |
struct wait_channel *wc) |
{ |
{ |
struct client *c = item->client; |
struct client *c = cmdq_get_client(item); |
struct wait_item *wi; |
struct wait_item *wi; |
|
|
if (c == NULL) { |
if (c == NULL) { |
|
|
{ |
{ |
struct wait_item *wi; |
struct wait_item *wi; |
|
|
if (item->client == NULL) { |
if (cmdq_get_client(item) == NULL) { |
cmdq_error(item, "not able to lock"); |
cmdq_error(item, "not able to lock"); |
return (CMD_RETURN_ERROR); |
return (CMD_RETURN_ERROR); |
} |
} |