From c477f305589c8c95c27b89de6f19f354dec0856f Mon Sep 17 00:00:00 2001 From: hjkcst <2693958665@qq.com> Date: Tue, 7 May 2024 10:44:33 +0800 Subject: [PATCH] When testing a cycle event, calling application_impl::stop_offer_event is invalid.This change can fix the problem --- implementation/routing/src/event.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/implementation/routing/src/event.cpp b/implementation/routing/src/event.cpp index 8f5b44ce4..8c4c7db3b 100644 --- a/implementation/routing/src/event.cpp +++ b/implementation/routing/src/event.cpp @@ -797,7 +797,7 @@ event::start_cycle() { && std::chrono::milliseconds::zero() != cycle_) { cycle_timer_.expires_from_now(cycle_); auto its_handler = - std::bind(&event::update_cbk, shared_from_this(), + std::bind(&event::update_cbk, this, std::placeholders::_1); cycle_timer_.async_wait(its_handler); }