From 22c76b7eb50e8abc49e308f15fbe3a5fa127e8fc Mon Sep 17 00:00:00 2001 From: orignal Date: Mon, 2 Nov 2026 08:41:04 -0500 Subject: [PATCH] pass sharred_from_this to RequestDestination --- libi2pd/Datagram.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libi2pd/Datagram.cpp b/libi2pd/Datagram.cpp index 4ddb9be0..b9b2d891 100644 --- a/libi2pd/Datagram.cpp +++ b/libi2pd/Datagram.cpp @@ -617,7 +617,7 @@ namespace datagram if(!m_RequestingLS) { m_RequestingLS = true; - m_LocalDestination->RequestDestination(m_RemoteIdent, std::bind(&DatagramSession::HandleLeaseSetUpdated, this, std::placeholders::_1)); + m_LocalDestination->RequestDestination(m_RemoteIdent, std::bind(&DatagramSession::HandleLeaseSetUpdated, shared_from_this (), std::placeholders::_1)); } return nullptr; } @@ -764,7 +764,7 @@ namespace datagram if (!m_RequestingLS) { m_RequestingLS = true; - m_LocalDestination->RequestDestination(m_RemoteIdent, std::bind(&DatagramSession::HandleLeaseSetUpdated, this, std::placeholders::_1)); + m_LocalDestination->RequestDestination(m_RemoteIdent, std::bind(&DatagramSession::HandleLeaseSetUpdated, shared_from_this (), std::placeholders::_1)); } }