Fix file transfers on win32.

This commit is contained in:
js 2008-05-10 15:40:27 +00:00
parent 64ee7c14a7
commit 04725e830c
1 changed files with 3 additions and 0 deletions

View File

@ -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])