diff --git a/src/kademlia/dht_tracker.cpp b/src/kademlia/dht_tracker.cpp index 225a2d9bb..4ff783ec3 100644 --- a/src/kademlia/dht_tracker.cpp +++ b/src/kademlia/dht_tracker.cpp @@ -241,11 +241,15 @@ namespace libtorrent { namespace dht mutex_t::scoped_lock l(m_mutex); if (bootstrap.type() == entry::dictionary_t) { +#ifndef BOOST_NO_EXCEPTIONS try { +#endif if (entry const* nodes = bootstrap.find_key("nodes")) read_endpoint_list(nodes, initial_nodes); +#ifndef BOOST_NO_EXCEPTIONS } catch (std::exception&) {} +#endif } error_code ec;