Commit f643d327 authored by Denis Bilenko's avatar Denis Bilenko

minor change

parent d9e50827
......@@ -384,9 +384,7 @@ class socket(object):
def recv(self, *args):
while True:
try:
res = self._sock.recv(*args)
#print 'received: %r' % (res, )
return res
return self._sock.recv(*args)
except error, ex:
if ex[0] == errno.EBADF:
return ''
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment