Skip to content

Commit

Permalink
Make chrono controller stop running before locking
Browse files Browse the repository at this point in the history
  • Loading branch information
TrentHouliston committed Aug 31, 2024
1 parent 1f9aee6 commit 74d09f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension/ChronoController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ namespace extension {

// When we shutdown we notify so we quit now
on<Shutdown>().then("Shutdown Chrono Controller", [this] {
const std::lock_guard<std::mutex> lock(mutex);
running.store(false, std::memory_order_release);
const std::lock_guard<std::mutex> lock(mutex);
wait.notify_all();
});

Expand Down

0 comments on commit 74d09f6

Please sign in to comment.