summaryrefslogtreecommitdiffstats
path: root/module/network/HTTPDownload.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-12-14 18:43:03 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-12-14 18:43:03 +0100
commitc36736997b7c0a0e6cc2cbb426f49b486b78a171 (patch)
treef9588cac0b9f931dfbe733d49eb68ded9f602587 /module/network/HTTPDownload.py
parentmerge setup to default (diff)
downloadpyload-c36736997b7c0a0e6cc2cbb426f49b486b78a171.tar.xz
cleaned setup
Diffstat (limited to 'module/network/HTTPDownload.py')
-rw-r--r--module/network/HTTPDownload.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/network/HTTPDownload.py b/module/network/HTTPDownload.py
index 5a4436529..498cd5979 100644
--- a/module/network/HTTPDownload.py
+++ b/module/network/HTTPDownload.py
@@ -205,6 +205,7 @@ class HTTPDownload():
t = time()
# reduce these calls
+ # when num_q is 0, the loop is exited
while lastFinishCheck + 0.5 < t:
# list of failed curl handles
failed = []
@@ -240,10 +241,10 @@ class HTTPDownload():
ex = e
else:
chunksDone.add(curl)
- if not num_q: # no more infos to get
+ if not num_q: # no more info to get
# check if init is not finished so we reset download connections
- # note that other chunks are closed and downloaded with init too
+ # note that other chunks are closed and everything downloaded with initial connection
if failed and init not in failed and init.c not in chunksDone:
self.log.error(_("Download chunks failed, fallback to single connection | %s" % (str(ex))))
@@ -288,7 +289,6 @@ class HTTPDownload():
if self.abort:
raise Abort()
- #sleep(0.003) #suppress busy waiting - limits dl speed to (1 / x) * buffersize
self.m.select(1)
for chunk in self.chunks: