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