From a7ecb4be92a1d8c76cef6dd0f885e68555abd025 Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Thu, 2 Feb 2023 11:52:45 -0400 Subject: [PATCH] fix: delete `appController` before `statusFoundation` AppController executes status-go Logout function when it's being deleted, and that will stop all status-go services and kill pending mailserver requests. If StatusFoundation is deleted before the AppController, it's possible for some tasks to freeze the app on logout --- src/nim_status_client.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nim_status_client.nim b/src/nim_status_client.nim index 42b5aea537..f096e3ad7b 100644 --- a/src/nim_status_client.nim +++ b/src/nim_status_client.nim @@ -150,8 +150,8 @@ proc mainProc() = networkAccessFactory.delete() dockShowAppEvent.delete() osThemeEvent.delete() - statusFoundation.delete() appController.delete() + statusFoundation.delete() singleInstance.delete() app.delete()