db/simple: add missing "return"
SimpleDatabase::Visit() always throws exception when visiting a song.
Adding a song to the queue always results in a "No such directory"
error response, although the song is successfully added. This
behaviour was introduced by commit
3ff728ab02
. This patch fixes this.
https://bugs.musicpd.org/view.php?id=4601
This commit is contained in:
parent
95e2bec215
commit
541da2740d
@ -289,6 +289,8 @@ SimpleDatabase::Visit(const DatabaseSelection &selection,
|
|||||||
const LightSong song2 = song->Export();
|
const LightSong song2 = song->Export();
|
||||||
if (selection.Match(song2))
|
if (selection.Match(song2))
|
||||||
visit_song(song2);
|
visit_song(song2);
|
||||||
|
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user