forked from cromer/pamac-classic
daemon fix
This commit is contained in:
parent
af7912eccb
commit
c6b31a5226
@ -1980,6 +1980,7 @@ namespace Pamac {
|
|||||||
stderr.printf ("SpawnError: %s\n", e.message);
|
stderr.printf ("SpawnError: %s\n", e.message);
|
||||||
}
|
}
|
||||||
// get standard handle
|
// get standard handle
|
||||||
|
databases_lock_mutex.lock ();
|
||||||
refresh_handle ();
|
refresh_handle ();
|
||||||
databases_lock_mutex.unlock ();
|
databases_lock_mutex.unlock ();
|
||||||
// launch standard prepare
|
// launch standard prepare
|
||||||
@ -1989,9 +1990,12 @@ namespace Pamac {
|
|||||||
} else {
|
} else {
|
||||||
trans_release ();
|
trans_release ();
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
databases_lock_mutex.unlock ();
|
||||||
}
|
}
|
||||||
if (!success) {
|
if (!success) {
|
||||||
// get standard handle
|
// get standard handle
|
||||||
|
databases_lock_mutex.lock ();
|
||||||
refresh_handle ();
|
refresh_handle ();
|
||||||
databases_lock_mutex.unlock ();
|
databases_lock_mutex.unlock ();
|
||||||
trans_prepare_finished (false);
|
trans_prepare_finished (false);
|
||||||
|
Loading…
Reference in New Issue
Block a user