From 571c630d9360ddc7621c2e415f1f66c0ea78c8a2 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Sat, 3 Sep 2016 14:37:36 -0400 Subject: [PATCH] try creating routing session if not present --- Datagram.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Datagram.cpp b/Datagram.cpp index 42354945..8b4c440b 100644 --- a/Datagram.cpp +++ b/Datagram.cpp @@ -260,7 +260,8 @@ namespace datagram void DatagramSession::UpdateRoutingPath(const std::shared_ptr & 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; // set routing path and update time we last updated the routing path m_RoutingSession->SetSharedRoutingPath (path);