diff options
author | Nitzo <nitzo2001@yahoo.com> | 2016-01-29 20:32:07 +0100 |
---|---|---|
committer | Nitzo <nitzo2001@yahoo.com> | 2016-01-29 20:32:07 +0100 |
commit | cad33cec0ca6d19c66beaef2746f30630ff98102 (patch) | |
tree | d838f90ba7371cf975580933019b7b0baa8a5c17 /module | |
parent | [Captcha] fix #2311 (diff) | |
download | pyload-cad33cec0ca6d19c66beaef2746f30630ff98102.tar.xz |
[Bace] fix race condition with `assignJob`
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/internal/Base.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/module/plugins/internal/Base.py b/module/plugins/internal/Base.py index e6055e454..34ccde08b 100644 --- a/module/plugins/internal/Base.py +++ b/module/plugins/internal/Base.py @@ -27,7 +27,7 @@ def parse_fileInfo(klass, url="", html=""): class Base(Plugin): __name__ = "Base" __type__ = "base" - __version__ = "0.23" + __version__ = "0.24" __status__ = "stable" __pattern__ = r'^unmatchable$' @@ -286,7 +286,10 @@ class Base(Plugin): #: Deprecated method, use `_process` instead (Remove in 0.4.10) def preprocessing(self, *args, **kwargs): - time.sleep(1) #@NOTE: Recheck info thread synchronization in 0.4.10 + self.pyfile.setStatus("starting") #@NOTE: Set pyfile status from `queued` to `starting` as soon as possible to avoid race condition in ThreadManager's assignJob function + + #@NOTE: Recheck info thread synchronization in 0.4.10 + # time.sleep(1) return self._process(*args, **kwargs) |