From e1359f78b55f64205dcc796d86f8c7871fdbd541 Mon Sep 17 00:00:00 2001 From: FReenen Date: Tue, 13 Aug 2024 21:08:24 +0200 Subject: [PATCH] fix kick --- ground-station.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ground-station.py b/ground-station.py index 0388bfb..50934dc 100644 --- a/ground-station.py +++ b/ground-station.py @@ -128,7 +128,7 @@ async def sendcmd(data): async def kick_client(clientId): """kick a client""" for client in Clients: - if client['id'] == client and client['state'] == "terminated": + if client['id'] == client and client['state'] != "terminated": if client['boat'] is not None: client['boat']['state'] = BOAT_STATE_AVAILABLE client['boat'] = None