diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-06-16 23:59:16 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-06-16 23:59:16 +0200 |
commit | dc0c62c8edff5f61dbdff0ef0b6236379f2ad1d1 (patch) | |
tree | 4f59fe689ff24e778c5c4a38f039cdb7a468bc41 /module/download_thread.py | |
parent | fixed rapidshare server url bug (diff) | |
download | pyload-dc0c62c8edff5f61dbdff0ef0b6236379f2ad1d1.tar.xz |
new file list modul
Diffstat (limited to 'module/download_thread.py')
-rw-r--r-- | module/download_thread.py | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/module/download_thread.py b/module/download_thread.py index a2318038a..a290bc4f7 100644 --- a/module/download_thread.py +++ b/module/download_thread.py @@ -60,16 +60,15 @@ class Download_Thread(threading.Thread): def run(self): while (not self.shutdown): - if self.parent.py_load_files: - self.loadedPyFile = self.parent.get_job() - if self.loadedPyFile: - try: - self.download(self.loadedPyFile) - except Exception, e: - print "Error:", e #catch up all error here - self.loadedPyFile.status.type = "failed" - finally: - self.parent.job_finished(self.loadedPyFile) + self.loadedPyFile = self.parent.get_job() + if self.loadedPyFile: + try: + self.download(self.loadedPyFile) + except Exception, e: + print "Error:", e #catch up all error here + self.loadedPyFile.status.type = "failed" + finally: + self.parent.job_finished(self.loadedPyFile) sleep(0.5) if self.shutdown: sleep(1) |