1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-21 23:32:35 +00:00

Default initialize sleep callback duration in tr_verify_worker (#6789)

std::chrono::duration is just a wrapper, underlying numerical value member will be default initialized to zero as expected.

See https://en.cppreference.com/w/cpp/chrono/duration

Signed-off-by: Dzmitry Neviadomski <nevack.d@gmail.com>
This commit is contained in:
Dzmitry Neviadomski 2024-05-24 23:51:16 +03:00 committed by GitHub
parent 09b67c84b1
commit e8a72d9c5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -96,5 +96,5 @@ private:
std::atomic<bool> stop_current_ = false;
std::condition_variable stop_current_cv_;
std::chrono::milliseconds sleep_per_seconds_during_verify_;
std::chrono::milliseconds sleep_per_seconds_during_verify_ = {};
};