mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
fix(Workspaces): fix concurrence and move json parser to ipc client
This commit is contained in:
@ -259,13 +259,12 @@ void waybar::modules::MPD::tryConnect() {
|
||||
|
||||
try {
|
||||
checkErrors(connection_.get());
|
||||
std::cerr << module_name_ << ": Connected to MPD" << std::endl;
|
||||
} catch (std::runtime_error& e) {
|
||||
std::cerr << module_name_ << ": Failed to connect to MPD: " << e.what() << std::endl;
|
||||
connection_.reset();
|
||||
alternate_connection_.reset();
|
||||
}
|
||||
|
||||
std::cerr << module_name_ << ": Connected to MPD" << std::endl;
|
||||
}
|
||||
|
||||
void waybar::modules::MPD::checkErrors(mpd_connection* conn) {
|
||||
|
Reference in New Issue
Block a user