fxied crash at startup

This commit is contained in:
orignal 2015-01-11 17:40:11 -05:00
parent d8942a3359
commit e3e0702813

View file

@ -478,8 +478,8 @@ namespace data
if (num > 0) if (num > 0)
{ {
auto pool = i2p::tunnel::tunnels.GetExploratoryPool (); auto pool = i2p::tunnel::tunnels.GetExploratoryPool ();
auto outbound = pool->GetNextOutboundTunnel (); auto outbound = pool ? pool->GetNextOutboundTunnel () : nullptr;
auto inbound = pool->GetNextInboundTunnel (); auto inbound = pool ? pool->GetNextInboundTunnel () : nullptr;
std::vector<i2p::tunnel::TunnelMessageBlock> msgs; std::vector<i2p::tunnel::TunnelMessageBlock> msgs;
if (!dest->IsExploratory ()) if (!dest->IsExploratory ())
{ {