From 0fdcf8e99e21a07de774044e8a11c5c321a66d69 Mon Sep 17 00:00:00 2001 From: Sven Czarnian Date: Sun, 15 Aug 2021 12:54:18 +0200 Subject: [PATCH] use the destructor --- aman/com/Euroscope.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aman/com/Euroscope.py b/aman/com/Euroscope.py index f55f5db..616f7fb 100644 --- a/aman/com/Euroscope.py +++ b/aman/com/Euroscope.py @@ -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()