Lgndr: Log that the data lock is active
This commit is contained in:
parent
0503cb1bb4
commit
ca5daab71d
|
@ -43,6 +43,9 @@ class LegendaryCLI(LegendaryCLIReal):
|
|||
def unlock_installed(func):
|
||||
@functools.wraps(func)
|
||||
def unlock(self, *args, **kwargs):
|
||||
if not self.core.lgd.lock_installed():
|
||||
self.logger.debug("Data is locked, trying to forcufully release it")
|
||||
# self.core.lgd._installed_lock.release(force=True)
|
||||
try:
|
||||
ret = func(self, *args, **kwargs)
|
||||
except Exception as e:
|
||||
|
|
|
@ -34,6 +34,9 @@ class LegendaryCore(LegendaryCoreReal):
|
|||
def unlock_installed(func):
|
||||
@functools.wraps(func)
|
||||
def unlock(self, *args, **kwargs):
|
||||
if not self.lgd.lock_installed():
|
||||
self.log.debug("Data is locked, trying to forcufully release it")
|
||||
# self.lgd._installed_lock.release(force=True)
|
||||
try:
|
||||
ret = func(self, *args, **kwargs)
|
||||
except Exception as e:
|
||||
|
|
Loading…
Reference in a new issue