Skip to content
Snippets Groups Projects
Commit aed52c33 authored by inso's avatar inso
Browse files

Fix ClientSession leak

parent 697e6632
No related branches found
No related tags found
No related merge requests found
......@@ -151,6 +151,7 @@ class NetworkService(QObject):
for connector in self._connectors:
if connector.node.state in (Node.OFFLINE, Node.CORRUPTED) \
and connector.node.last_state_change + 3600 < time.time():
await connector.close_ws()
connector.disconnect()
self._processor.delete_node(connector.node)
self._connectors.remove(connector)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment