summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-08-18 15:51:03 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-08-18 15:51:03 +0200
commite7605940aee5cde5bc8a55ae403834525601fa2f (patch)
treefb3fcef37aa79f9f9f4ff63ff94c0d46fabf56b5 /pyLoadCore.py
parentAdded Depositfiles.com Download Plugin (diff)
downloadpyload-e7605940aee5cde5bc8a55ae403834525601fa2f.tar.xz
new webinterface functions
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-xpyLoadCore.py21
1 files changed, 16 insertions, 5 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py
index 14293cc9a..ff8641d39 100755
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -260,12 +260,23 @@ class Core(object):
return status
def init_server(self):
- self.server = ServerThread(self)
- self.server.start()
-
+
+ try:
+ self.server = ServerThread(self)
+ self.server.start()
+ except:
+ self.logger.error("failed starting socket server, CLi and Gui will not be available")
+
def init_webserver(self):
- self.webserver = WebServer(self)
- self.webserver.start()
+
+ if not self.config['webinterface']['activated']:
+ return False
+
+ try:
+ self.webserver = WebServer(self)
+ self.webserver.start()
+ except:
+ self.looger.error("failed starting webserver, no webinterface available")
def kill(self):
self.do_kill = True