...but at first check if there is callback to invoke.
This commit is contained in:
@@ -191,7 +191,7 @@ void Connection::UpdateDirectory(const string &path)
|
|||||||
{
|
{
|
||||||
mpd_sendUpdateCommand(itsConnection, path.c_str());
|
mpd_sendUpdateCommand(itsConnection, path.c_str());
|
||||||
mpd_finishCommand(itsConnection);
|
mpd_finishCommand(itsConnection);
|
||||||
if (!itsConnection->error)
|
if (!itsConnection->error && itsUpdater)
|
||||||
{
|
{
|
||||||
itsCurrentStatus->updatingDb = 1;
|
itsCurrentStatus->updatingDb = 1;
|
||||||
StatusChanges ch;
|
StatusChanges ch;
|
||||||
|
|||||||
Reference in New Issue
Block a user