Skip to content

Commit

Permalink
Merge pull request #44 from nurse/mswin-sleep-insteadof-select
Browse files Browse the repository at this point in the history
Sleep in timeout instead of select on Windows
  • Loading branch information
repeatedly committed Aug 24, 2015
2 parents de16378 + 30c9d50 commit 8a33081
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ext/libev/ev_select.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,10 @@ select_poll (EV_P_ ev_tstamp timeout)
* (Visual C++ 12), it cause WaitForMultipleObjects stuck.
*/
if (EV_WIN_FD_COUNT(vec_ri) == 0 && EV_WIN_FD_COUNT(vec_wi) == 0)
return;
{
ev_sleep (timeout);
return;
}
#endif

EV_RELEASE_CB;
Expand Down

0 comments on commit 8a33081

Please sign in to comment.