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();
|
dp.emit();
|
||||||
}
|
}
|
||||||
} catch (const std::exception& e) {
|
} 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());
|
spdlog::debug("{}: {}", module_name_, e.what());
|
||||||
} else {
|
} else {
|
||||||
spdlog::warn("{}: {}", module_name_, e.what());
|
spdlog::warn("{}: {}", module_name_, e.what());
|
||||||
|
|
Loading…
Reference in New Issue