diff options
author | Nitzo <nitzo2001@yahoo.com> | 2016-01-30 01:55:37 +0100 |
---|---|---|
committer | Nitzo <nitzo2001@yahoo.com> | 2016-01-30 01:55:37 +0100 |
commit | 4dbd7eec7a1e4a3b3ce821453d35f9dc621aed52 (patch) | |
tree | 9f5d7e797a94dd693eac6c6ad1e2fb7aa5f9f92f | |
parent | [MegaCoNz] Fix import error (diff) | |
download | pyload-4dbd7eec7a1e4a3b3ce821453d35f9dc621aed52.tar.xz |
[ClickNLoad] Fix false reporting of unclean shutdown on python 2.5
-rw-r--r-- | module/plugins/hooks/ClickNLoad.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hooks/ClickNLoad.py b/module/plugins/hooks/ClickNLoad.py index 4c72c7512..cfa0c1f1d 100644 --- a/module/plugins/hooks/ClickNLoad.py +++ b/module/plugins/hooks/ClickNLoad.py @@ -17,7 +17,7 @@ from module.plugins.internal.misc import forward, lock class ClickNLoad(Addon): __name__ = "ClickNLoad" __type__ = "hook" - __version__ = "0.57" + __version__ = "0.58" __status__ = "testing" __config__ = [("activated", "bool" , "Activated" , True ), @@ -65,8 +65,8 @@ class ClickNLoad(Addon): except Exception: pass - success_exit = self.exit_done.wait(10) - if success_exit: + self.exit_done.wait(10) + if self.exit_done.isSet(): self.log_debug(_("Server exited successfully")) else: self.log_warning(_("Server was not exited gracefully, shutdown forced")) |