use the destructor

This commit is contained in:
Sven Czarnian
2021-08-15 12:54:18 +02:00
parent 6b2072f43b
commit 0fdcf8e99e

View File

@@ -80,7 +80,7 @@ class Euroscope:
self.notificationSocket.setsockopt(zmq.CURVE_SERVER, True)
self.notificationSocket.bind('tcp://' + config.Address + ':' + str(config.PortNotification))
def __exit__(self, *_exc):
def __del__(self):
self.auth.stop()
self.receiverThread.stopThread()
self.receiverThread.join()