Skip to content

Commit

Permalink
Merge pull request #824 from AntelopeIO/asio_deadline_timer_dtor_order
Browse files Browse the repository at this point in the history
fix dtor order for fallback asio deadline timer
  • Loading branch information
spoonincode authored Sep 26, 2024
2 parents dbbf776 + 4952243 commit 4caeba1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libraries/chain/platform_timer_asio_fallback.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ platform_timer::platform_timer() {

platform_timer::~platform_timer() {
stop();
my->timer.reset();
if(std::lock_guard guard(timer_ref_mutex); --refcount == 0) {
checktime_ios->stop();
checktime_thread.join();
Expand Down

0 comments on commit 4caeba1

Please sign in to comment.