mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-24 05:56:37 +00:00
fixup: missed self.
This commit is contained in:
parent
9c110644b8
commit
b50709aef1
@ -216,7 +216,7 @@ class Task(models.Model):
|
||||
"""
|
||||
Check if the locked_by process is still running.
|
||||
"""
|
||||
if self in objects.locked(timezone.now()) and self.locked_by:
|
||||
if self in self.objects.locked(timezone.now()) and self.locked_by:
|
||||
pid, nodename = self.locked_by.split('/', 1)
|
||||
# locked by a process on this node?
|
||||
if nodename != self.nodename:
|
||||
|
Loading…
Reference in New Issue
Block a user