fix issue where updates to super seeding state would not include the torrent in the state_update_alert (#1659)

This commit is contained in:
Arvid Norberg 2017-02-04 16:09:42 -05:00 committed by GitHub
parent c9a2fed2c9
commit 0a26ed8d1e
2 changed files with 3 additions and 0 deletions

View File

@ -1,3 +1,4 @@
* updating super seeding would include the torrent in state_update_alert
* fix issue where num_seeds could be greater than num_peers in torrent_status
* finished non-seed torrents can also be in super-seeding mode
* fix issue related to unloading torrents

View File

@ -5014,6 +5014,7 @@ namespace libtorrent
m_super_seeding = on;
set_need_save_resume();
state_updated();
if (m_super_seeding) return;
@ -8737,6 +8738,7 @@ namespace libtorrent
{
m_super_seeding = false;
set_need_save_resume();
state_updated();
}
if (is_finished() && m_state != torrent_status::finished)