another try to fix #37, please test and report

This commit is contained in:
guinux
2015-03-27 16:31:07 +01:00
parent 147b8d04c8
commit c578e6bee9
4 changed files with 46 additions and 38 deletions

View File

@@ -197,7 +197,11 @@ namespace Pamac {
if (locked) {
if (lockfile.query_exists () == false) {
locked = false;
check_updates ();
// let the time to the daemon to update packages
Timeout.add (1000, () => {
check_updates ();
return false;
});
}
} else {
if (lockfile.query_exists () == true) {