mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
75eacb95ef
In waybar::modules::Battery::~Battery(), store a copy of the batteries_ iterator before calling erase(), as erase() invalidates the iterator. Prior to this change, disconnecting outputs resulted in a SEGFAULT when using the battery module; e.g., [debug] Received SIGCHLD in signalThread [debug] Cmd exited with code 0 [debug] Received SIGCHLD in signalThread [debug] Cmd exited with code 0 [debug] Received SIGCHLD in signalThread [debug] Cmd exited with code 0 [debug] Output removed: AU Optronics 0x2336 [info] Bar configured (width: 1280, height: 25) for output: eDP-1 [info] Bar configured (width: 1280, height: 25) for output: eDP-1 zsh: segmentation fault (core dumped) ./build/waybar -l trace Signed-off-by: Lukas Fleischer <lfleischer@lfos.de> |
||
---|---|---|
.. | ||
cpu | ||
dwl | ||
hyprland | ||
memory | ||
mpd | ||
mpris | ||
river | ||
sni | ||
sway | ||
upower | ||
wlr | ||
backlight.cpp | ||
battery.cpp | ||
bluetooth.cpp | ||
cava.cpp | ||
clock.cpp | ||
custom.cpp | ||
disk.cpp | ||
gamemode.cpp | ||
idle_inhibitor.cpp | ||
image.cpp | ||
inhibitor.cpp | ||
jack.cpp | ||
keyboard_state.cpp | ||
network.cpp | ||
pulseaudio.cpp | ||
simpleclock.cpp | ||
sndio.cpp | ||
temperature.cpp | ||
user.cpp | ||
wireplumber.cpp |