invoke callback immediately after sending update command succesfully

This commit is contained in:
Andrzej Rybczak
2009-03-22 20:01:39 +01:00
parent ab265f2fdf
commit 9270a83a78
2 changed files with 5 additions and 1 deletions

View File

@@ -192,7 +192,12 @@ void Connection::UpdateDirectory(const string &path)
mpd_sendUpdateCommand(itsConnection, path.c_str());
mpd_finishCommand(itsConnection);
if (!itsConnection->error)
{
itsCurrentStatus->updatingDb = 1;
StatusChanges ch;
ch.DBUpdating = 1;
itsUpdater(this, ch, itsErrorHandlerUserdata);
}
}
}