mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
fix: use strcmp
This commit is contained in:
parent
8fbaf06cbe
commit
45deb2472c
@ -74,7 +74,7 @@ std::thread waybar::modules::MPD::event_listener() {
|
||||
dp.emit();
|
||||
}
|
||||
} catch (const std::exception& e) {
|
||||
if (e.what() == "Connection to MPD closed") {
|
||||
if (strcmp(e.what(), "Connection to MPD closed") == 0) {
|
||||
spdlog::debug("{}: {}", module_name_, e.what());
|
||||
} else {
|
||||
spdlog::warn("{}: {}", module_name_, e.what());
|
||||
|
Loading…
Reference in New Issue
Block a user