Commit 0674a199 authored by Jean-Francois Dockes's avatar Jean-Francois Dockes
Browse files

The mpd password was not sent for the idle loop connection, so that no events...

The mpd password was not sent for the idle loop connection, so that no events were generated if an mpd password was set
parent 4e56b2e0
......@@ -209,6 +209,12 @@ bool MPDCli::eventLoop()
LOGERR("MPDCli::eventloop: could not open connection\n");
return false;
}
if (!mpd_run_password(m_idleconn, m_password.c_str())) {
LOGERR("MPDCli::eventloop: password wrong ?\n");
mpd_connection_free(m_idleconn);
m_idleconn = nullptr;
return false;
}
}
MpdStatus::State st;
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment