minor simplification to client_test

This commit is contained in:
arvidn 2020-04-01 01:26:37 +02:00 committed by Arvid Norberg
parent 1e6ed1afd1
commit 4406fd2993
1 changed files with 1 additions and 3 deletions

View File

@ -970,10 +970,8 @@ bool handle_alert(torrent_view& view, session_view& ses_view
else if (save_resume_data_alert* p = alert_cast<save_resume_data_alert>(a))
{
--num_outstanding_resume_data;
torrent_handle h = p->handle;
auto const buf = write_resume_data_buf(p->params);
torrent_status st = h.status(torrent_handle::query_save_path);
save_file(resume_file(st.info_hash), buf);
save_file(resume_file(p->params.info_hash), buf);
}
else if (save_resume_data_failed_alert* p = alert_cast<save_resume_data_failed_alert>(a))
{