Explorar o código

use the destructor

Sven Czarnian %!s(int64=3) %!d(string=hai) anos
pai
achega
0fdcf8e99e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      aman/com/Euroscope.py

+ 1 - 1
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()