Do not loop after sending a database update command to Mopidy
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
* Support gstreamer's udpsink as a data source for visualization (Mopidy).
|
||||
* Deprecate `visualizer_fifo_path` in favor of `visualizer_data_source`.
|
||||
* Don't run volume changing actions if there is no mixer.
|
||||
* Do not loop after sending a database update command to Mopidy.
|
||||
|
||||
# ncmpcpp-0.8.2 (2018-04-11)
|
||||
* Help screen: fixed display of EoF keycode
|
||||
|
||||
@@ -214,7 +214,11 @@ Status Connection::getStatus()
|
||||
void Connection::UpdateDirectory(const std::string &path)
|
||||
{
|
||||
prechecksNoCommandsList();
|
||||
mpd_run_update(m_connection.get(), path.c_str());
|
||||
// Use update as mpd_run_update doesn't call mpd_response_finish if the id
|
||||
// returned from mpd_recv_update_id is 0 which breaks mopidy.
|
||||
mpd_send_update(m_connection.get(), path.c_str());
|
||||
mpd_recv_update_id(m_connection.get());
|
||||
mpd_response_finish(m_connection.get());
|
||||
checkErrors();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user