fix: store seconds downloading/seeding when stopping torrent (#6844)

* fix: save seconds downloading when stopping torrent

* fix: save seconds seeding when stopping torrent
This commit is contained in:
Yat Ho
2024-05-24 23:12:30 +08:00
committed by GitHub
parent 459c8d3791
commit b6363fcf47

View File

@@ -756,6 +756,10 @@ void tr_torrent::stop_now()
TR_ASSERT(session->am_in_session_thread());
auto const lock = unique_lock();
auto const now = tr_time();
seconds_downloading_before_current_start_ = seconds_downloading(now);
seconds_seeding_before_current_start_ = seconds_seeding(now);
is_running_ = false;
is_stopping_ = false;
mark_changed();