diff --git a/CHANGELOG.md b/CHANGELOG.md index 8910271..f2c7f53 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,9 @@ * fcft >= 2.4.0 is now required. * sway-xkb: non-keyboard inputs are now ignored (https://codeberg.org/dnkl/yambar/issues/51). +* battery: don’t terminate (causing last status to “freeze”) when + failing to update; retry again later + (https://codeberg.org/dnkl/yambar/issues/44). ### Deprecated diff --git a/modules/battery.c b/modules/battery.c index 7dcfc45..7b8ff5e 100644 --- a/modules/battery.c +++ b/modules/battery.c @@ -434,9 +434,8 @@ run(struct module *mod) continue; } - if (!update_status(mod)) - break; - bar->refresh(bar); + if (update_status(mod)) + bar->refresh(bar); } out: