diff --git a/src/timer_wrap.cc b/src/timer_wrap.cc index 4b6350c4cb33b5..6660b8c958810c 100644 --- a/src/timer_wrap.cc +++ b/src/timer_wrap.cc @@ -56,7 +56,8 @@ TimerWrapHandle::TimerWrapHandle( } void TimerWrapHandle::Stop() { - return timer_->Stop(); + if (timer_ != nullptr) + return timer_->Stop(); } void TimerWrapHandle::Close() {