From aa1f4ee72a5bb04bb9baeb1e81bca2ec2a863f26 Mon Sep 17 00:00:00 2001 From: orignal Date: Fri, 7 Dec 2018 12:25:26 -0500 Subject: [PATCH] fixed possible race condition --- libi2pd_client/I2PService.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libi2pd_client/I2PService.cpp b/libi2pd_client/I2PService.cpp index 69e53e78..40df0161 100644 --- a/libi2pd_client/I2PService.cpp +++ b/libi2pd_client/I2PService.cpp @@ -64,7 +64,7 @@ namespace client void I2PService::TriggerReadyCheckTimer() { m_ReadyTimer.expires_from_now(boost::posix_time::seconds (1)); - m_ReadyTimer.async_wait(std::bind(&I2PService::HandleReadyCheckTimer, this, std::placeholders::_1)); + m_ReadyTimer.async_wait(std::bind(&I2PService::HandleReadyCheckTimer, shared_from_this (), std::placeholders::_1)); m_ReadyTimerTriggered = true; }