From b4a9d3668132997c36ed64b52f94ffa310e10822 Mon Sep 17 00:00:00 2001 From: xy Date: Fri, 21 Feb 2014 12:43:21 +0800 Subject: [PATCH] unref toobusy timer --- toobusy.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/toobusy.cc b/toobusy.cc index 3a575c1..eaacdd8 100644 --- a/toobusy.cc +++ b/toobusy.cc @@ -94,6 +94,7 @@ extern "C" void init(Handle target) { target->Set(String::New("maxLag"), FunctionTemplate::New(HighWaterMark)->GetFunction()); uv_timer_init(uv_default_loop(), &s_timer); uv_timer_start(&s_timer, every_second, POLL_PERIOD_MS, POLL_PERIOD_MS); + uv_unref((uv_handle_t* )&s_timer); }; NODE_MODULE(toobusy, init);