From 20edfc76ad3bebe4b7cac50b968119b03dbea671 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Mon, 21 Oct 2013 22:58:53 +0200 Subject: [PATCH] windows: remove unneeded check Cheking if the loop is alive is covered in the while loop afterwards. Also, the stop flag will be cleared if necessary, which didn't happen before this patch. --- src/win/core.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/win/core.c b/src/win/core.c index 640e9eec..4a9eca26 100644 --- a/src/win/core.c +++ b/src/win/core.c @@ -272,9 +272,6 @@ int uv_run(uv_loop_t *loop, uv_run_mode mode) { else poll = &uv_poll; - if (!uv__loop_alive(loop)) - return 0; - r = uv__loop_alive(loop); while (r != 0 && loop->stop_flag == 0) { uv_update_time(loop);