summaryrefslogtreecommitdiff
path: root/src/timer_wrap.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/timer_wrap.cc')
-rw-r--r--src/timer_wrap.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/timer_wrap.cc b/src/timer_wrap.cc
index e82f9036d1..498bcbb846 100644
--- a/src/timer_wrap.cc
+++ b/src/timer_wrap.cc
@@ -83,7 +83,10 @@ class TimerWrap : public HandleWrap {
}
TimerWrap(Environment* env, Handle<Object> object)
- : HandleWrap(env, object, reinterpret_cast<uv_handle_t*>(&handle_)) {
+ : HandleWrap(env,
+ object,
+ reinterpret_cast<uv_handle_t*>(&handle_),
+ AsyncWrap::PROVIDER_TIMERWRAP) {
int r = uv_timer_init(env->event_loop(), &handle_);
assert(r == 0);
}