diff --git a/src/modules/battery.cpp b/src/modules/battery.cpp index 6ccbb042..a6938457 100644 --- a/src/modules/battery.cpp +++ b/src/modules/battery.cpp @@ -33,7 +33,7 @@ void waybar::modules::Battery::worker() { thread_timer_ = [this] { dp.emit(); - thread_.sleep_for(interval_); + thread_timer_.sleep_for(interval_); }; thread_ = [this] { struct inotify_event event = {0};