From d36ef3ecebf3199bc04047db5b22f38af4e6a432 Mon Sep 17 00:00:00 2001 From: guinux Date: Sat, 13 May 2017 15:54:52 +0200 Subject: [PATCH] fix daemon quit func --- src/daemon.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/daemon.vala b/src/daemon.vala index 10a80aa..3882dc1 100644 --- a/src/daemon.vala +++ b/src/daemon.vala @@ -2219,7 +2219,7 @@ namespace Pamac { [DBus (no_reply = true)] public void quit () { // be sure to not quit with locked databases - if (thread_pool.get_num_threads () == 0) { + if (thread_pool.unprocessed () == 0) { loop.quit (); } }