forked from cromer/pamac-classic
improve deemon quit
This commit is contained in:
parent
dee861da3d
commit
f772be911c
@ -2247,11 +2247,10 @@ namespace Pamac {
|
||||
|
||||
[DBus (no_reply = true)]
|
||||
public void quit () {
|
||||
// be sure to not quit with locked databases
|
||||
if (thread_pool.unprocessed () == 0) {
|
||||
// wait for all tasks to be processed
|
||||
ThreadPool.free ((owned) thread_pool, false, true);
|
||||
loop.quit ();
|
||||
}
|
||||
}
|
||||
// End of Daemon Object
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user