db/proxy: fix inconsistent error handling in VisitUniqueTags()

This commit is contained in:
Max Kellermann 2016-03-18 23:42:04 +01:00
parent b07495aae9
commit b6a3ce9305
1 changed files with 2 additions and 3 deletions

View File

@ -808,9 +808,8 @@ ProxyDatabase::VisitUniqueTags(const DatabaseSelection &selection,
result = visit_tag(tag.Commit(), error);
}
return mpd_response_finish(connection) &&
CheckError(connection, error) &&
result;
mpd_response_finish(connection);
return result && CheckError(connection, error);
}
bool