Commit 11e1f3f8 authored by Denis Bilenko's avatar Denis Bilenko

fix bug in gevent.select.select(): support for write descriptors was broken

parent 6ea12931
......@@ -36,7 +36,7 @@ def select(read_list, write_list, error_list, timeout=None):
for r in read_list:
allevents.append(core.read_event(get_fileno(r), callback, arg=r))
for w in write_list:
allevents.append(core.write_event(get_fileno(r), callback, arg=w))
allevents.append(core.write_event(get_fileno(w), callback, arg=w))
timeout = Timeout.start_new(timeout)
try:
......
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