1
0
Fork 0
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:
Yat Ho 2023-12-18 01:16:48 +08:00 committed by GitHub
parent efcfc7d374
commit 8177c883b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -34,7 +34,7 @@ auto constexpr SleepPerSecondDuringVerify = 100ms;
} }
} // namespace } // 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(); verify_mediator.on_verify_started();

View file

@ -72,7 +72,7 @@ private:
tr_priority_t priority_; 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(); void verify_thread_func();