fix daemon quit func

This commit is contained in:
guinux 2017-05-13 15:54:52 +02:00
parent d39482b2e5
commit d36ef3eceb

View File

@ -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 ();
}
}