Skip to content
Snippets Groups Projects
Commit f42596a2 authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

coio_wait(): fix a sporadically failing socket.test

parent e76a2ff4
No related branches found
No related tags found
No related merge requests found
......@@ -728,6 +728,8 @@ coio_wait_cb(struct ev_loop *loop, ev_io *watcher, int revents)
int
coio_wait(int fd, int events, double timeout)
{
if (fiber_is_cancelled())
return 0;
struct ev_io io;
coio_init(&io, fd);
ev_io_init(&io, coio_wait_cb, fd, events);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment