summaryrefslogtreecommitdiffstats
path: root/pyload/manager/Thread.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/manager/Thread.py')
-rw-r--r--pyload/manager/Thread.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/pyload/manager/Thread.py b/pyload/manager/Thread.py
index dd8e6bcce..147dff31f 100644
--- a/pyload/manager/Thread.py
+++ b/pyload/manager/Thread.py
@@ -71,9 +71,8 @@ class ThreadManager(object):
InfoThread(self, data, pid)
- @lock
-
+ @lock
def createResultThread(self, data, add=False):
""" creates a thread to fetch online status, returns result id """
self.timestamp = time() + 5 * 60
@@ -85,9 +84,8 @@ class ThreadManager(object):
return rid
- @lock
-
+ @lock
def getInfoResult(self, rid):
"""returns result and clears it"""
self.timestamp = time() + 5 * 60
@@ -99,9 +97,8 @@ class ThreadManager(object):
else:
return {}
- @lock
-
+ @lock
def setInfoResults(self, rid, result):
self.infoResults[rid].update(result)