From 4406fd2993869e2a349d22d3c109db3623eea5bf Mon Sep 17 00:00:00 2001 From: arvidn Date: Wed, 1 Apr 2020 01:26:37 +0200 Subject: [PATCH] minor simplification to client_test --- examples/client_test.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/client_test.cpp b/examples/client_test.cpp index 73cd63b42..a5365726b 100644 --- a/examples/client_test.cpp +++ b/examples/client_test.cpp @@ -970,10 +970,8 @@ bool handle_alert(torrent_view& view, session_view& ses_view else if (save_resume_data_alert* p = alert_cast(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(a)) {