diff options
| author | 2019-10-10 14:12:58 +0100 | |
|---|---|---|
| committer | 2019-10-10 14:12:58 +0100 | |
| commit | fd0baff0938846a5382016683a7a2cc08ccb4016 (patch) | |
| tree | c06a596adb4fd8d01cfa4a0cfc66a9892f803d7d /src/LockFile.py | |
| parent | move PoolHook registrations to start.py (diff) | |
| signature | ||
only .call() PollHooks when they're "due"
Diffstat (limited to 'src/LockFile.py')
| -rw-r--r-- | src/LockFile.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/LockFile.py b/src/LockFile.py index 9f53b8d5..f7681775 100644 --- a/src/LockFile.py +++ b/src/LockFile.py @@ -32,8 +32,7 @@ class LockFile(PollHook.PollHook): def next(self): return max(0, (self._next_lock-utils.datetime_utcnow()).total_seconds()) def call(self): - if self.next() == 0: - self.lock() + self.lock() def unlock(self): if os.path.isfile(self._lock_location): |
