summaryrefslogtreecommitdiffstats
path: root/pyload/manager/Thread.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-18 00:29:55 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-18 00:29:55 +0200
commitbb5a115533711fd8bb87f53cb32ff7342137208d (patch)
tree476600f9896fae029880e4049eb4c5e6021b202d /pyload/manager/Thread.py
parentPEP-8, Python Zen, refactor and reduce code (part 6 in master module/common) (diff)
downloadpyload-bb5a115533711fd8bb87f53cb32ff7342137208d.tar.xz
Spare code cosmetics (5)
Diffstat (limited to 'pyload/manager/Thread.py')
-rw-r--r--pyload/manager/Thread.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pyload/manager/Thread.py b/pyload/manager/Thread.py
index b255523d6..a8550e504 100644
--- a/pyload/manager/Thread.py
+++ b/pyload/manager/Thread.py
@@ -250,10 +250,12 @@ class ThreadManager(object):
def assignJob(self):
"""assing a job to a thread if possible"""
- if self.pause or not self.core.api.isTimeDownload(): return
+ if self.pause or not self.core.api.isTimeDownload():
+ return
# if self.downloaded > 20:
- # if not self.cleanPyCurl(): return
+ # if not self.cleanPyCurl():
+ return
free = [x for x in self.threads if not x.active]