mirror of
https://github.com/transmission/transmission
synced 2024-12-22 07:42:37 +00:00
fix: allow stopping torrent during verify again (#6398)
This commit is contained in:
parent
efcfc7d374
commit
8177c883b0
2 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ auto constexpr SleepPerSecondDuringVerify = 100ms;
|
|||
}
|
||||
} // namespace
|
||||
|
||||
void tr_verify_worker::verify_torrent(Mediator& verify_mediator, bool const abort_flag)
|
||||
void tr_verify_worker::verify_torrent(Mediator& verify_mediator, std::atomic<bool> const& abort_flag)
|
||||
{
|
||||
verify_mediator.on_verify_started();
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@ private:
|
|||
tr_priority_t priority_;
|
||||
};
|
||||
|
||||
static void verify_torrent(Mediator& verify_mediator, bool abort_flag);
|
||||
static void verify_torrent(Mediator& verify_mediator, std::atomic<bool> const& abort_flag);
|
||||
|
||||
void verify_thread_func();
|
||||
|
||||
|
|
Loading…
Reference in a new issue