浏览代码

use the destructor

Sven Czarnian 3 年之前
父节点
当前提交
0fdcf8e99e
共有 1 个文件被更改,包括 1 次插入1 次删除
  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()