Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
06c17283
Commit
06c17283
authored
Mar 18, 2016
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
queue/PlaylistUpdate: catch and ignore DatabaseError
Fixes regression by commit
42f7df96
parent
1543dd85
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
PlaylistUpdate.cxx
src/queue/PlaylistUpdate.cxx
+8
-1
No files found.
src/queue/PlaylistUpdate.cxx
View file @
06c17283
...
@@ -21,6 +21,7 @@
...
@@ -21,6 +21,7 @@
#include "Playlist.hxx"
#include "Playlist.hxx"
#include "db/Interface.hxx"
#include "db/Interface.hxx"
#include "db/LightSong.hxx"
#include "db/LightSong.hxx"
#include "db/DatabaseError.hxx"
#include "DetachedSong.hxx"
#include "DetachedSong.hxx"
#include "util/Error.hxx"
#include "util/Error.hxx"
...
@@ -32,7 +33,13 @@ UpdatePlaylistSong(const Database &db, DetachedSong &song)
...
@@ -32,7 +33,13 @@ UpdatePlaylistSong(const Database &db, DetachedSong &song)
from the Database */
from the Database */
return
false
;
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
)
if
(
original
==
nullptr
)
/* not found - shouldn't happen, because the update
/* not found - shouldn't happen, because the update
thread should ensure that all stale Song instances
thread should ensure that all stale Song instances
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment