Fixing CPU usage spike on Waybar
This commit is contained in:
@@ -61,6 +61,10 @@ void waybar::modules::Custom::delayWorker() {
|
||||
}
|
||||
dp.emit();
|
||||
}
|
||||
if (!config_["exec"].isString() && !config_["exec-if"].isString()) {
|
||||
thread_.stop();
|
||||
return;
|
||||
}
|
||||
thread_.sleep_for(interval_);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user