diff options
author | mkaay <mkaay@mkaay.de> | 2009-12-28 20:14:15 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2009-12-28 20:14:15 +0100 |
commit | e78cbecc8405e225b6b22625e1854ba920d81062 (patch) | |
tree | 4d67ea8108286ffc3016f06f0862b07a3772e99f | |
parent | tried to satisfy RaNaN (diff) | |
download | pyload-e78cbecc8405e225b6b22625e1854ba920d81062.tar.xz |
fixed webserver bug (thx nCID)
-rwxr-xr-x | pyLoadCore.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py index 52cdf6720..aaa965901 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -321,9 +321,10 @@ class Core(object): return self.downloadSpeedLimit def shutdown(self): - self.logger.info("shutting down...") - self.webserver.quit()
- self.webserver.join() + self.logger.info("shutting down...")
+ if self.config['webinterface']['activated']: + self.webserver.quit()
+ self.webserver.join() for thread in self.thread_list.threads: thread.shutdown = True self.thread_list.stopAllDownloads() |