fix sam crash on exit and datagram crash with no outbound tunnel

This commit is contained in:
Jeff Becker 2016-12-18 12:56:34 -05:00
parent d5f27ecb0e
commit 673b7a95b7
3 changed files with 13 additions and 18 deletions

View file

@ -310,7 +310,7 @@ namespace datagram
std::vector<i2p::tunnel::TunnelMessageBlock> send;
auto routingPath = GetSharedRoutingPath();
// if we don't have a routing path we will drop all queued messages
if(routingPath)
if(routingPath && routingPath->outboundTunnel && routingPath->remoteLease)
{
for (const auto & msg : m_SendQueue)
{