Close ZMQ sockets gracefully

This commit is contained in:
R. Richard
2019-05-20 11:06:57 +02:00
parent 2a3d29f080
commit 7d50ee607a
2 changed files with 15 additions and 1 deletions

View File

@ -106,6 +106,10 @@ class EventHandlerBase(ABC):
self.server_connector.unsubscribe(key)
self.keys.remove(key)
def stop(self):
self.server_connector.close()
self.cleanup()
def cleanup(self):
"""
Perform cleanup actions such as releasing database