From ec0c7b8958f30b84b2dd21d030b11007983b5888 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Tue, 29 May 2012 17:34:16 +0200 Subject: [PATCH] test: fix double close in test-loop-handles.c --- test/test-loop-handles.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-loop-handles.c b/test/test-loop-handles.c index 45a41f18..d7761169 100644 --- a/test/test-loop-handles.c +++ b/test/test-loop-handles.c @@ -148,7 +148,7 @@ static void idle_1_cb(uv_idle_t* handle, int status) { ASSERT(idles_1_active > 0); /* Init idle_2 and make it active */ - if (!idle_2_is_active) { + if (!idle_2_is_active && !uv_is_closing((uv_handle_t*)&idle_2_handle)) { r = uv_idle_init(uv_default_loop(), &idle_2_handle); ASSERT(r == 0); r = uv_idle_start(&idle_2_handle, idle_2_cb);