diff options
author | Walter Purcaro <vuolter@gmail.com> | 2015-01-27 17:46:19 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2015-01-27 17:46:19 +0100 |
commit | 49397d8e52e7c68a4ce3c1eb74792e23d79f3ebb (patch) | |
tree | af262e4cad80c4399e029fc8426907d5799c557a | |
parent | [FilerNet] Fix typo (diff) | |
download | pyload-49397d8e52e7c68a4ce3c1eb74792e23d79f3ebb.tar.xz |
[ClickAndLoad] Use self.manager instead hookManager
-rw-r--r-- | module/plugins/hooks/ClickAndLoad.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/hooks/ClickAndLoad.py b/module/plugins/hooks/ClickAndLoad.py index 80201fe23..94a240d4c 100644 --- a/module/plugins/hooks/ClickAndLoad.py +++ b/module/plugins/hooks/ClickAndLoad.py @@ -66,7 +66,7 @@ def create_connection(address, timeout=object(), source_address=None): class ClickAndLoad(Hook): __name__ = "ClickAndLoad" __type__ = "hook" - __version__ = "0.30" + __version__ = "0.31" __config__ = [("activated", "bool", "Activated" , True ), ("port" , "int" , "Port" , 9666 ), @@ -91,7 +91,7 @@ class ClickAndLoad(Hook): @threaded def proxy(self, ip, webport, cnlport): - hookManager.startThread(self.server, ip, webport, cnlport) + self.manager.startThread(self.server, ip, webport, cnlport) lock = Lock() lock.acquire() lock.acquire() @@ -109,8 +109,8 @@ class ClickAndLoad(Hook): server_socket = dock_socket.accept()[0] client_socket = create_connection(("127.0.0.1", webport)) - hookManager.startThread(forward, server_socket, client_socket) - hookManager.startThread(forward, client_socket, server_socket) + self.manager.startThread(forward, server_socket, client_socket) + self.manager.startThread(forward, client_socket, server_socket) except socket.error, e: self.logError(e) |