diff --git a/ChangeLog b/ChangeLog index 02627c2fb..4c17b84c7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/src/torrent.cpp b/src/torrent.cpp index 78c3bf95f..d37c6ecb1 100644 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -4608,10 +4608,12 @@ namespace libtorrent || m_state == torrent_status::checking_files || m_state == torrent_status::checking_resume_data) { - if (alerts().should_post()) + if (alerts().should_post()) { - 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 rd(new entry); + write_resume_data(*rd); + alerts().post_alert(save_resume_data_alert(rd + , get_handle())); } return; }