From 4a6808f15f14165fe737720fa02667ff5f4350ed Mon Sep 17 00:00:00 2001 From: Jaidyn Ann Date: Sat, 31 Jul 2021 20:23:54 -0500 Subject: [PATCH] (purple) Kill daemon after sending protocol metadata --- protocols/purple/PurpleApp.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/protocols/purple/PurpleApp.cpp b/protocols/purple/PurpleApp.cpp index 5589ade..b9c0556 100644 --- a/protocols/purple/PurpleApp.cpp +++ b/protocols/purple/PurpleApp.cpp @@ -146,6 +146,8 @@ PurpleApp::MessageReceived(BMessage* msg) BRoster roster; if (roster.IsRunning(APP_SIGNATURE) == false) Quit(); + if (fAccountThreads.CountItems() == 0 || fAccounts.CountItems() == 0) + Quit(); break; } case G_MAIN_LOOP: