forked from premiere/premiere-libtorrent
fixed problem with torrents that were paused not getting any upload slots or connection quota once the were unpaused
This commit is contained in:
parent
f795be7acf
commit
6a47eb501e
|
@ -1054,10 +1054,10 @@ namespace libtorrent { namespace detail
|
||||||
}
|
}
|
||||||
catch (std::exception& e)
|
catch (std::exception& e)
|
||||||
{
|
{
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
std::cerr << e.what() << "\n";
|
std::cerr << e.what() << "\n";
|
||||||
std::string err = e.what();
|
std::string err = e.what();
|
||||||
#endif
|
#endif
|
||||||
assert(false);
|
assert(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2309,6 +2309,10 @@ namespace libtorrent
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
m_paused = false;
|
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
|
// tell the tracker that we're back
|
||||||
m_event = tracker_request::started;
|
m_event = tracker_request::started;
|
||||||
|
|
Loading…
Reference in New Issue