Commit 06c17283 authored by Max Kellermann's avatar Max Kellermann

queue/PlaylistUpdate: catch and ignore DatabaseError

Fixes regression by commit 42f7df96
parent 1543dd85
......@@ -21,6 +21,7 @@
#include "Playlist.hxx"
#include "db/Interface.hxx"
#include "db/LightSong.hxx"
#include "db/DatabaseError.hxx"
#include "DetachedSong.hxx"
#include "util/Error.hxx"
......@@ -32,7 +33,13 @@ UpdatePlaylistSong(const Database &db, DetachedSong &song)
from the Database */
return false;
const LightSong *original = db.GetSong(song.GetURI(), IgnoreError());
const LightSong *original;
try {
original = db.GetSong(song.GetURI(), IgnoreError());
} catch (DatabaseError) {
return false;
}
if (original == nullptr)
/* not found - shouldn't happen, because the update
thread should ensure that all stale Song instances
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment