Skip to content
This repository has been archived by the owner on Oct 16, 2021. It is now read-only.

Commit

Permalink
Don't close a nonexistent watchdog thread
Browse files Browse the repository at this point in the history
  • Loading branch information
jBarz committed Mar 8, 2018
1 parent 5016270 commit 4e7bf44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/node_watchdog.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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_);
}

Expand Down

0 comments on commit 4e7bf44

Please sign in to comment.