Skip to content
This repository has been archived by the owner on Oct 24, 2018. It is now read-only.

Commit

Permalink
daemon fix
Browse files Browse the repository at this point in the history
  • Loading branch information
guinux committed Mar 24, 2017
1 parent af7912e commit c6b31a5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/daemon.vala
Original file line number Diff line number Diff line change
Expand Up @@ -1980,6 +1980,7 @@ namespace Pamac {
stderr.printf ("SpawnError: %s\n", e.message);
}
// get standard handle
databases_lock_mutex.lock ();
refresh_handle ();
databases_lock_mutex.unlock ();
// launch standard prepare
Expand All @@ -1989,9 +1990,12 @@ namespace Pamac {
} else {
trans_release ();
}
} else {
databases_lock_mutex.unlock ();
}
if (!success) {
// get standard handle
databases_lock_mutex.lock ();
refresh_handle ();
databases_lock_mutex.unlock ();
trans_prepare_finished (false);
Expand Down

0 comments on commit c6b31a5

Please sign in to comment.