Add core clean up when Application exits

Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
Loren Eteval
2023-08-28 11:50:01 +08:00
parent d322aa6ede
commit 07bbee28e3
+2 -3
View File
@@ -261,9 +261,8 @@ class Application(SingletonApplication):
Proxy.off()
Proxy.daemonOff()
# Avoid calling core exit callback. Cores are cleaned by OS.
# if self.tray is not None:
# self.tray.ConnectAction.stopCore()
if self.tray is not None:
self.tray.ConnectAction.stopCore()
NeedSyncSettings.syncAll()