Commit 8cc1e691 authored by Arturo Filastò's avatar Arturo Filastò
Browse files

[hotfix] Only release the lock if it is locked

parent e5c3190b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -88,6 +88,7 @@ class ScheduledTask(object):
        )

    def cancel(self):
        if self._last_run_lock.locked:
            self._last_run_lock.release()

    @property