Commit daad3d6e authored by Denis Bilenko's avatar Denis Bilenko

socket.py: add a minor comment

parent 61af679f
......@@ -394,6 +394,7 @@ class socket(object):
try:
self._wait(self._read_event)
except error:
# if another greenlet called this socket, _wait would fail with EBADF
ex = sys.exc_info()[1]
if ex.args[0] == 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