[client-updates-daemon] do not lock entropy resources when checking if system repo db mtime is changed
This commit is contained in:
@@ -464,6 +464,7 @@ class UpdatesDaemon(dbus.service.Object):
|
||||
|
||||
def _is_system_changed(self):
|
||||
with self.__is_working_mutex:
|
||||
|
||||
entropy = Entropy()
|
||||
locked = entropy.resources_check_lock()
|
||||
if locked:
|
||||
@@ -472,14 +473,6 @@ class UpdatesDaemon(dbus.service.Object):
|
||||
entropy.destroy()
|
||||
return False # resources are locked, nothing changed yet :P
|
||||
|
||||
# acquire resources lock
|
||||
acquired = entropy.resources_create_lock()
|
||||
if not acquired:
|
||||
if DAEMON_DEBUG:
|
||||
write_output("__run_fetcher: resources locked during acquire")
|
||||
entropy.destroy()
|
||||
return False
|
||||
|
||||
try:
|
||||
|
||||
last_mtime = self.__last_system_db_mtime
|
||||
@@ -496,8 +489,6 @@ class UpdatesDaemon(dbus.service.Object):
|
||||
return changed
|
||||
|
||||
finally:
|
||||
# unlock resources
|
||||
entropy.resources_remove_lock()
|
||||
# say goodbye
|
||||
entropy.destroy()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user