mirror of
https://github.com/rad4day/Waybar.git
synced 2025-07-20 01:42:38 +02:00
fix: use strcmp
This commit is contained in:
@@ -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());
|
||||||
|
Reference in New Issue
Block a user