use the destructor

이 커밋은 다음에 포함됨:
Sven Czarnian가 2021-08-15 12:54:18 +02:00를 커밋했습니다
1 부모 6b2072f43b
커밋 0fdcf8e99e
1 파일이 변경됨
+1 -1
+1 -1
파일 보기
@@ -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()