diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-02-12 21:57:32 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-02-12 21:57:32 +0100 |
commit | 26e9079d27f8b852f68970eb4ae2c5880cc20e70 (patch) | |
tree | 2cb57f1060dc763126a0036b616b9907a3b9d80c /module/plugins/hooks | |
parent | locale fix (diff) | |
download | pyload-26e9079d27f8b852f68970eb4ae2c5880cc20e70.tar.xz |
cnl fix, webif. add dialog - destionation choosable
Diffstat (limited to 'module/plugins/hooks')
-rw-r--r-- | module/plugins/hooks/ClickAndLoad.py | 8 |
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): |