summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2009-12-28 20:14:15 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2009-12-28 20:14:15 +0100
commite78cbecc8405e225b6b22625e1854ba920d81062 (patch)
tree4d67ea8108286ffc3016f06f0862b07a3772e99f
parenttried to satisfy RaNaN (diff)
downloadpyload-e78cbecc8405e225b6b22625e1854ba920d81062.tar.xz
fixed webserver bug (thx nCID)
-rwxr-xr-xpyLoadCore.py7
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()