From 2db634796bd5426c11f7849ce480265091f128c8 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Mon, 13 Apr 2015 17:34:59 +0200 Subject: Cleanup (2) --- pyload/manager/Thread.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'pyload/manager/Thread.py') 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) -- cgit v1.2.3