diff options
author | mkaay <mkaay@mkaay.de> | 2010-11-05 18:29:42 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2010-11-05 18:29:42 +0100 |
commit | 7fababff0fb3e4251cf7ac60f7a945a9e8f13bde (patch) | |
tree | b688b51493e5ac4418305b034676ab1c20e6c2f7 /module/PluginThread.py | |
parent | sj fix (diff) | |
download | pyload-7fababff0fb3e4251cf7ac60f7a945a9e8f13bde.tar.xz |
scheduler optimization, SJOrg fix, better crypter limit
Diffstat (limited to 'module/PluginThread.py')
-rw-r--r-- | module/PluginThread.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/module/PluginThread.py b/module/PluginThread.py index f12639719..9cce3a42e 100644 --- a/module/PluginThread.py +++ b/module/PluginThread.py @@ -309,11 +309,6 @@ class DecrypterThread(PluginThread): pyfile = self.active retry = False - if not self.active.plugin.multiDL: - while self.m.isOccupiedCrypter(self.active.pluginname): - sleep(0.5) - self.m.addOccupiedCrypter(self.active.pluginname) - try: self.m.log.info(_("Decrypting starts: %s") % self.active.name) self.active.plugin.preprocessing(self) @@ -348,8 +343,6 @@ class DecrypterThread(PluginThread): self.m.log.info(_("Retrying %s") % self.active.name) retry = True - if not self.active.plugin.multiDL: - self.m.removeOccupiedCrypter(pyfile.pluginname) return self.run() except Exception, e: @@ -367,8 +360,7 @@ class DecrypterThread(PluginThread): finally: if not retry: - if not self.active.plugin.multiDL: - self.m.removeOccupiedCrypter(pyfile.pluginname) + self.m.removeOccupiedCrypter(pyfile.pluginname) self.active.release() self.active = False self.m.core.files.save() |