Fetch torrent status when generating final fastresume data

This is done to get correct queue position, which has to be written into
the fastresume file. See discussion in #6154.
This commit is contained in:
Eugene Shalygin
2017-01-18 17:23:57 +01:00
parent 6cd233dd61
commit b6e64c13d8
4 changed files with 9 additions and 6 deletions

View File

@@ -467,7 +467,7 @@ namespace BitTorrent
void updateRatioTimer();
void exportTorrentFile(TorrentHandle *const torrent, TorrentExportFolder folder = TorrentExportFolder::Regular);
void saveTorrentResumeData(TorrentHandle *const torrent);
void saveTorrentResumeData(TorrentHandle *const torrent, bool finalSave = false);
void handleAlert(libtorrent::alert *a);
void dispatchTorrentAlert(libtorrent::alert *a);