Commit 7a185f1e authored by Max Kellermann's avatar Max Kellermann

queue/PlaylistUpdate: assert Database::GetSong()!=nullptr

parent c1fa5279
......@@ -37,14 +37,13 @@ UpdatePlaylistSong(const Database &db, DetachedSong &song)
try {
original = db.GetSong(song.GetURI());
} catch (const std::runtime_error &e) {
return false;
}
if (original == nullptr)
/* not found - shouldn't happen, because the update
thread should ensure that all stale Song instances
have been purged */
return false;
}
assert(original != nullptr);
if (original->mtime == song.GetLastModified()) {
/* not modified */
......
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