Actually close connection

This commit is contained in:
Fierelier 2021-04-22 05:34:11 +02:00
parent eb05c89d47
commit 682fc748fe

View File

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