command/fingerprint: fix inverted check

This commit is contained in:
Max Kellermann 2019-12-04 16:59:01 +01:00
parent c129ca9f63
commit 65bbb975d2

View File

@ -345,7 +345,7 @@ handle_getfingerprint(Client &client, Request args, Response &)
lu.path = storage->MapFS(lu.canonical_uri);
if (lu.path.IsNull()) {
uri = storage->MapUTF8(lu.canonical_uri);
if (uri_has_scheme(uri.c_str()))
if (!uri_has_scheme(uri.c_str()))
throw ProtocolError(ACK_ERROR_NO_EXIST, "No such song");
}
}