summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2020-08-21 17:52:30 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-08-21 18:10:39 +0200
commita1aaad46fb480fd7bd3204d7e7f5ade15eb4d031 (patch)
tree2b1b802fc83c116a029c6da56c82a93cbe2eb02c /src
parent91c3a285ba937ef2de6a87320db5288bf3f8983b (diff)
#980 do not report busy client if probing is pending
og_client_status() should not report busy when probing is going on.
Diffstat (limited to 'src')
-rw-r--r--src/rest.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/rest.c b/src/rest.c
index 9be1bce..c2d33a4 100644
--- a/src/rest.c
+++ b/src/rest.c
@@ -103,8 +103,13 @@ static struct og_client *og_client_find(const char *ip)
static const char *og_client_status(const struct og_client *cli)
{
- if (cli->last_cmd != OG_CMD_UNSPEC)
+ switch (cli->last_cmd) {
+ case OG_CMD_UNSPEC:
+ case OG_CMD_PROBE:
+ break;
+ default:
return "BSY";
+ }
switch (cli->status) {
case OG_CLIENT_STATUS_BUSY: