Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

test: fix double close in test-loop-handles.c

  • Loading branch information
bnoordhuis committed May 29, 2012
1 parent 7556590 commit ec0c7b8958f30b84b2dd21d030b11007983b5888
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);

0 comments on commit ec0c7b8

Please sign in to comment.
You can’t perform that action at this time.