From 682fc748fe43a67bc585adfb79357771c7b46012 Mon Sep 17 00:00:00 2001 From: Fierelier Date: Thu, 22 Apr 2021 05:34:11 +0200 Subject: [PATCH] Actually close connection --- fstream-server.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fstream-server.py b/fstream-server.py index 1bb1177..65662a3 100644 --- a/fstream-server.py +++ b/fstream-server.py @@ -90,6 +90,12 @@ def commandToList(cmd): def closeConnection(connectionId): if connectionId in connections: + try: + connections[connectionId]["connection"].close() + except Exception as e: + print("Failed to close connection: " +str(e)) + pass + del connections[connectionId] class outThread(threading.Thread):