This commit is contained in:
Laila van Reenen 2024-08-13 21:08:24 +02:00
parent 543e67929b
commit e1359f78b5
Signed by: LailaTheElf
GPG Key ID: 1F4E6EE3E6DDF769

View File

@ -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