diff options
-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() |