diff --git a/src/http_tracker_connection.cpp b/src/http_tracker_connection.cpp index 288ee7267..df0715ca6 100755 --- a/src/http_tracker_connection.cpp +++ b/src/http_tracker_connection.cpp @@ -225,7 +225,14 @@ namespace libtorrent } // handle tracker response - entry e = bdecode(data, data + size); + entry e; +#ifndef BOOST_NO_EXCEPTIONS + try { +#endif + e = bdecode(data, data + size); +#ifndef BOOST_NO_EXCEPTIONS + } catch (std::exception&) {} +#endif if (e.type() != entry::undefined_t) {