From 7fababff0fb3e4251cf7ac60f7a945a9e8f13bde Mon Sep 17 00:00:00 2001 From: mkaay Date: Fri, 5 Nov 2010 18:29:42 +0100 Subject: scheduler optimization, SJOrg fix, better crypter limit --- module/PluginThread.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'module/PluginThread.py') 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() -- cgit v1.2.3