From 4e7bf44dcdcb434b60c6cd0a217e14266670754c Mon Sep 17 00:00:00 2001 From: John Barboza Date: Thu, 8 Mar 2018 10:10:14 -0800 Subject: [PATCH] Don't close a nonexistent watchdog thread --- src/node_watchdog.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/node_watchdog.cc b/src/node_watchdog.cc index 01ee81921b0..41f33dbe8e3 100644 --- a/src/node_watchdog.cc +++ b/src/node_watchdog.cc @@ -259,10 +259,10 @@ void SigintWatchdogHelper::Unregister(SigintWatchdog* wd) { void SigintWatchdogHelper::ReleaseSystemResources() { + if (has_running_thread_ == false) + return; start_stop_count_ = 0; Stop(); - - CHECK_EQ(has_running_thread_, false); uv_sem_destroy(&sem_); }