Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
abhaybd committed Sep 22, 2023
1 parent 5c5a406 commit ce1547a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/scheduler.h
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,9 @@ class Watchdog : private impl::Notifiable {
quitting = true;
}
cv.notify_all();
thread.join();
if (thread.joinable()) {
thread.join();
}
}

Watchdog& operator=(const Watchdog&) = delete;
Expand Down

0 comments on commit ce1547a

Please sign in to comment.