mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user