mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-02 06:54:15 +00:00
try creating routing session if not present
This commit is contained in:
parent
fa1021df59
commit
571c630d93
@ -260,7 +260,8 @@ namespace datagram
|
|||||||
|
|
||||||
void DatagramSession::UpdateRoutingPath(const std::shared_ptr<i2p::garlic::GarlicRoutingPath> & path)
|
void DatagramSession::UpdateRoutingPath(const std::shared_ptr<i2p::garlic::GarlicRoutingPath> & path)
|
||||||
{
|
{
|
||||||
// we can't update routing path because we have no routing session
|
if(m_RoutingSession == nullptr && m_RemoteLeaseSet)
|
||||||
|
m_RoutingSession = m_LocalDestination->GetRoutingSession(m_RemoteLeaseSet, true);
|
||||||
if(!m_RoutingSession) return;
|
if(!m_RoutingSession) return;
|
||||||
// set routing path and update time we last updated the routing path
|
// set routing path and update time we last updated the routing path
|
||||||
m_RoutingSession->SetSharedRoutingPath (path);
|
m_RoutingSession->SetSharedRoutingPath (path);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user