1 parent 9193062 commit 87b34c9Copy full SHA for 87b34c9
1 file changed
src/timer_wrap.cc
@@ -67,7 +67,10 @@ class TimerWrap : public HandleWrap {
67
TimerWrap(Handle<Object> object)
68
: HandleWrap(object, (uv_handle_t*) &handle_) {
69
active_ = false;
70
+
71
int r = uv_timer_init(uv_default_loop(), &handle_);
72
+ assert(r == 0);
73
74
handle_.data = this;
75
76
// uv_timer_init adds a loop reference. (That is, it calls uv_ref.) This
0 commit comments