diff --git a/src/session_impl.cpp b/src/session_impl.cpp index b58460699..3e90169ed 100755 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -1054,10 +1054,10 @@ namespace libtorrent { namespace detail } catch (std::exception& e) { - #ifndef NDEBUG +#ifndef NDEBUG std::cerr << e.what() << "\n"; std::string err = e.what(); - #endif +#endif assert(false); } } diff --git a/src/torrent.cpp b/src/torrent.cpp index 73c0187ba..b41313913 100755 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -2309,6 +2309,10 @@ namespace libtorrent #endif m_paused = false; + m_uploads_quota.min = 2; + m_connections_quota.min = 2; + m_uploads_quota.max = std::numeric_limits::max(); + m_connections_quota.max = std::numeric_limits::max(); // tell the tracker that we're back m_event = tracker_request::started;