mirror of
https://github.com/transmission/transmission.git
synced 2025-12-20 02:18:42 +00:00
fix: tr_torrentStat() acquires a session thread lock (#4571)
This commit is contained in:
@@ -1522,6 +1522,7 @@ tr_stat const* tr_torrentStat(tr_torrent* tor)
|
|||||||
using namespace stat_helpers;
|
using namespace stat_helpers;
|
||||||
|
|
||||||
TR_ASSERT(tr_isTorrent(tor));
|
TR_ASSERT(tr_isTorrent(tor));
|
||||||
|
auto const lock = tor->unique_lock();
|
||||||
|
|
||||||
auto const now = tr_time_msec();
|
auto const now = tr_time_msec();
|
||||||
auto const now_sec = tr_time();
|
auto const now_sec = tr_time();
|
||||||
|
|||||||
Reference in New Issue
Block a user