generate partial resume data for torrents that haven't been checked
This commit is contained in:
parent
9c4c49c443
commit
d4e08cd37f
|
@ -52,6 +52,8 @@ release 0.14.3
|
|||
* accepts tracker responses with no 'peers' field, as long as 'peers6'
|
||||
is present
|
||||
* fixed CIDR-distance calculation in the precense of IPv6 peers
|
||||
* save partial resume data for torrents that are queued for checking
|
||||
or checking, to maintain stats and renamed files
|
||||
|
||||
release 0.14.2
|
||||
|
||||
|
|
|
@ -4608,10 +4608,12 @@ namespace libtorrent
|
|||
|| m_state == torrent_status::checking_files
|
||||
|| m_state == torrent_status::checking_resume_data)
|
||||
{
|
||||
if (alerts().should_post<save_resume_data_failed_alert>())
|
||||
if (alerts().should_post<save_resume_data_alert>())
|
||||
{
|
||||
alerts().post_alert(save_resume_data_failed_alert(get_handle()
|
||||
, "won't save resume data, torrent does not have a complete resume state yet"));
|
||||
boost::shared_ptr<entry> rd(new entry);
|
||||
write_resume_data(*rd);
|
||||
alerts().post_alert(save_resume_data_alert(rd
|
||||
, get_handle()));
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue