Skip to content

Commit

Permalink
Only call stop_executor_cb once on signal
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Dec 17, 2024
1 parent 0b2f151 commit 771553e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions application_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -483,8 +483,9 @@ void application_base::destroy_plugins() {
}

void application_base::quit() {
my->_is_quiting = true;
stop_executor_cb();
const bool already_quitting = my->_is_quiting.exchange(true);
if (!already_quitting)
stop_executor_cb();
}

bool application_base::is_quiting() const {
Expand Down

0 comments on commit 771553e

Please sign in to comment.