pass sharred_from_this to RequestDestination

This commit is contained in:
orignal committed 2026-11-02 08:41:04 -05:00
1 parent e485e138c7
commit 22c76b7eb5
1 file changed
+2 -2
+2 -2
View File
@@ -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));
}
}