summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-02-12 21:57:32 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-02-12 21:57:32 +0100
commit26e9079d27f8b852f68970eb4ae2c5880cc20e70 (patch)
tree2cb57f1060dc763126a0036b616b9907a3b9d80c /module/plugins
parentlocale fix (diff)
downloadpyload-26e9079d27f8b852f68970eb4ae2c5880cc20e70.tar.xz
cnl fix, webif. add dialog - destionation choosable
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/hooks/ClickAndLoad.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/module/plugins/hooks/ClickAndLoad.py b/module/plugins/hooks/ClickAndLoad.py
index f7c12356b..ab29c8731 100644
--- a/module/plugins/hooks/ClickAndLoad.py
+++ b/module/plugins/hooks/ClickAndLoad.py
@@ -37,8 +37,12 @@ class ClickAndLoad(Hook):
self.port = int(self.core.config['webinterface']['port'])
if self.core.config['webinterface']['activated']:
- forwarder('127.0.0.1', 9666, '127.0.0.1', self.port)
- thread.start_new_thread(asyncore.loop, ())
+ try:
+ forwarder('127.0.0.1', 9666, '127.0.0.1', self.port)
+ thread.start_new_thread(asyncore.loop, ())
+ except:
+ self.core.logger.error("ClickAndLoad port already in use.")
+
class forwarder(asyncore.dispatcher):
def __init__(self, ip, port, remoteip, remoteport, backlog=5):