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
3c4ed9cb
Commit
3c4ed9cb
authored
6 years ago
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
db/update/InotifyQueue: catch UpdateService::Enqueue() exceptions
parent
2677b902
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
NEWS
NEWS
+1
-0
InotifyQueue.cxx
src/db/update/InotifyQueue.cxx
+9
-1
No files found.
NEWS
View file @
3c4ed9cb
ver 0.21.4 (not yet released)
* database
- inotify: fix crash bug "terminate called after throwing ..."
- upnp: implement "list ... group"
* output
- httpd: declare protocol "HTTP/1.1" instead of "ICY"
...
...
This diff is collapsed.
Click to expand it.
src/db/update/InotifyQueue.cxx
View file @
3c4ed9cb
...
...
@@ -39,7 +39,15 @@ InotifyQueue::OnDelay() noexcept
while
(
!
queue
.
empty
())
{
const
char
*
uri_utf8
=
queue
.
front
().
c_str
();
id
=
update
.
Enqueue
(
uri_utf8
,
false
);
try
{
id
=
update
.
Enqueue
(
uri_utf8
,
false
);
}
catch
(...)
{
FormatError
(
std
::
current_exception
(),
"Failed to enqueue '%s'"
,
uri_utf8
);
queue
.
pop_front
();
continue
;
}
if
(
id
==
0
)
{
/* retry later */
delay_event
.
Schedule
(
INOTIFY_UPDATE_DELAY
);
...
...
This diff is collapsed.
Click to expand it.
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