diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-09-20 17:27:26 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-09-20 17:27:26 +0200 |
commit | 9808c90314ded2d8bdaab636eb5ea750b4fa6aa9 (patch) | |
tree | b2fbbcefc1453f24090f1b18d813472baee10edb /module/plugins/hooks/ClickAndLoad.py | |
parent | new tmp folder for unrar (diff) | |
download | pyload-9808c90314ded2d8bdaab636eb5ea750b4fa6aa9.tar.xz |
little fixes
Diffstat (limited to 'module/plugins/hooks/ClickAndLoad.py')
-rw-r--r-- | module/plugins/hooks/ClickAndLoad.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/module/plugins/hooks/ClickAndLoad.py b/module/plugins/hooks/ClickAndLoad.py index f0372dbf8..0ca492cb7 100644 --- a/module/plugins/hooks/ClickAndLoad.py +++ b/module/plugins/hooks/ClickAndLoad.py @@ -64,7 +64,12 @@ def server(self, *settings): thread.start_new_thread(forward, (client_socket, server_socket)) thread.start_new_thread(forward, (server_socket, client_socket)) except socket.error, e: - if e.errno == 98: + if hasattr(e, "errno"): + errno = e.errno + else: + errno = e.args[0] + + if errno == 98: self.core.log.warning(_("Click'N'Load: Port 9666 already in use")) return thread.start_new_thread(server, (self,)+settings) |