fixed problem with torrents that were paused not getting any upload slots or connection quota once the were unpaused

This commit is contained in:
Arvid Norberg 2007-02-12 18:21:14 +00:00
parent f795be7acf
commit 6a47eb501e
2 changed files with 6 additions and 2 deletions

View File

@ -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);
}
}

View File

@ -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<int>::max();
m_connections_quota.max = std::numeric_limits<int>::max();
// tell the tracker that we're back
m_event = tracker_request::started;