From 04725e830c352b58c591cd0386c1a24731a3bf4e Mon Sep 17 00:00:00 2001 From: js Date: Sat, 10 May 2008 15:40:27 +0000 Subject: [PATCH] Fix file transfers on win32. --- src/common/socks5.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/socks5.py b/src/common/socks5.py index 4e02125ca..c7aa99bf9 100644 --- a/src/common/socks5.py +++ b/src/common/socks5.py @@ -899,6 +899,9 @@ class Socks5Receiver(Socks5, IdleObject): def connect(self): ''' create the socket and plug it to the idlequeue ''' + if self.ais == None: + return None + for ai in self.ais: try: self._sock=socket.socket(*ai[:3])