diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-13 17:34:59 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-13 17:34:59 +0200 |
commit | 2db634796bd5426c11f7849ce480265091f128c8 (patch) | |
tree | 5a54f7535e9c0ff1ec65f05f347b6eafbb496922 /pyload/manager/Thread.py | |
parent | Cleanup (diff) | |
download | pyload-2db634796bd5426c11f7849ce480265091f128c8.tar.xz |
Cleanup (2)
Diffstat (limited to 'pyload/manager/Thread.py')
-rw-r--r-- | pyload/manager/Thread.py | 9 |
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) |