added BOOST_NO_EXCEPTIONS ifdefs

This commit is contained in:
Arvid Norberg 2009-05-07 07:01:36 +00:00
parent d0d2328288
commit d0786a0fde
1 changed files with 4 additions and 0 deletions

View File

@ -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<udp::endpoint>(nodes, initial_nodes);
#ifndef BOOST_NO_EXCEPTIONS
} catch (std::exception&) {}
#endif
}
error_code ec;