mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
timer_wrap: add sanity check assert
This commit is contained in:
1 parent
9193062e70
commit
87b34c94fa
1 file changed
+3
@@ -67,7 +67,10 @@ class TimerWrap : public HandleWrap {
|
||||
TimerWrap(Handle<Object> object)
|
||||
: HandleWrap(object, (uv_handle_t*) &handle_) {
|
||||
active_ = false;
|
||||
|
||||
int r = uv_timer_init(uv_default_loop(), &handle_);
|
||||
assert(r == 0);
|
||||
|
||||
handle_.data = this;
|
||||
|
||||
// uv_timer_init adds a loop reference. (That is, it calls uv_ref.) This
|
||||
|
||||
Reference in new issue
Block a user