소스 검색

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