mirror of
https://github.com/Alexays/Waybar.git
synced 2026-02-08 13:55:50 +00:00
In the previous fix for a passed max duration, the assumption was made that at maximum one second will pass between the duration assignment and the std::condition_variable::sleep_for() call. This implementation makes the behavior more predictable by using sleep_until() instead to emulate the sleep_for() behavior.