Browse Source

fxied crash at startup

pull/147/head
orignal 10 years ago
parent
commit
e3e0702813
  1. 4
      NetDb.cpp

4
NetDb.cpp

@ -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 ())
{ {

Loading…
Cancel
Save