Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
test: fix double close in test-loop-handles.c
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed May 29, 2012
1 parent 7556590 commit ec0c7b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test-loop-handles.c
Expand Up @@ -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);
Expand Down

0 comments on commit ec0c7b8

Please sign in to comment.