Actually close connection
This commit is contained in:
parent
eb05c89d47
commit
682fc748fe
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user