mirror of
https://github.com/rad4day/Waybar.git
synced 2025-08-25 06:52:26 +02: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.