Windows: do not hang if LOOP->refs become 0 in a prepare callback

This commit is contained in:
Bert Belder 2011-07-21 14:57:27 +02:00
parent 1ab28df433
commit 5b532d5f60

View File

@ -145,7 +145,7 @@ int uv_run() {
uv_prepare_invoke();
uv_poll(LOOP->idle_handles == NULL);
uv_poll(LOOP->idle_handles == NULL && LOOP->refs > 0);
uv_check_invoke();
}