From d0786a0fdee57efadb68799ad75c1a367e6a9d30 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Thu, 7 May 2009 07:01:36 +0000 Subject: [PATCH] added BOOST_NO_EXCEPTIONS ifdefs --- src/kademlia/dht_tracker.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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;