From fb5cfe06fdfd2abcf7ceb0586940e28190b3a1d1 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Thu, 23 Apr 2020 10:08:42 +0200 Subject: [PATCH] Do not decide whether we are blocking or not based on the gravity count (pre-v5.0 measure) but use the dedicated blockingstatus variable. Signed-off-by: DL6ER --- src/api/api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/api.c b/src/api/api.c index 0364d08e..a12931b0 100644 --- a/src/api/api.c +++ b/src/api/api.c @@ -123,7 +123,7 @@ void getStats(const int *sock) // Send status if(istelnet[*sock]) { - ssend(*sock, "status %s\n", counters->gravity > 0 ? "enabled" : "disabled"); + ssend(*sock, "status %s\n", blockingstatus ? "enabled" : "disabled"); } else pack_uint8(*sock, blockingstatus);