From 634ee69474c599148ed33a7c1cc20183016fd13b Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Tue, 17 Mar 2015 10:12:20 +0100 Subject: [PATCH] Extend reach of exception handling for UPnP. --- libp2p/Network.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libp2p/Network.cpp b/libp2p/Network.cpp index d004f33d2..d1e97fac6 100644 --- a/libp2p/Network.cpp +++ b/libp2p/Network.cpp @@ -154,7 +154,7 @@ bi::tcp::endpoint Network::traverseNAT(std::vector 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())