summaryrefslogtreecommitdiffstats
path: root/module/download_thread.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2009-11-12 23:33:28 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2009-11-12 23:33:28 +0100
commitd15f1d61c74dec1b566eb5d8b312f0b2c9eefd99 (patch)
treed43555ce368bbe8fc9f8d96482ffb57b86ead2f0 /module/download_thread.py
parentbetter exception handling for sockets (diff)
downloadpyload-d15f1d61c74dec1b566eb5d8b312f0b2c9eefd99.tar.xz
config includes max download time
Diffstat (limited to 'module/download_thread.py')
-rw-r--r--module/download_thread.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/module/download_thread.py b/module/download_thread.py
index 158d40147..6a31030ca 100644
--- a/module/download_thread.py
+++ b/module/download_thread.py
@@ -119,6 +119,7 @@ class Download_Thread(threading.Thread):
pyfile.init_download()
pyfile.plugin.prepare(self)
+ pyfile.plugin.req.set_timeout(self.parent.parent.config['general']['max_download_time'])
if status.url == "":
status.url = pyfile.plugin.get_file_url()