From 6a47eb501e470f3865b4b1bc18f4996c31618c89 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 12 Feb 2007 18:21:14 +0000 Subject: [PATCH] fixed problem with torrents that were paused not getting any upload slots or connection quota once the were unpaused --- src/session_impl.cpp | 4 ++-- src/torrent.cpp | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) 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;