Browse Source

Extend reach of exception handling for UPnP.

cl-refactor
Gav Wood 10 years ago
parent
commit
634ee69474
  1. 2
      libp2p/Network.cpp

2
libp2p/Network.cpp

@ -154,7 +154,7 @@ bi::tcp::endpoint Network::traverseNAT(std::vector<bi::address> const& _ifAddres
upnp = new UPnP;
}
// let m_upnp continue as null - we handle it properly.
catch (NoUPnPDevice) {}
catch (...) {}
bi::tcp::endpoint upnpep;
if (upnp && upnp->isValid())

Loading…
Cancel
Save