Commit 3c4ed9cb authored by Max Kellermann's avatar Max Kellermann

db/update/InotifyQueue: catch UpdateService::Enqueue() exceptions

parent 2677b902
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"
......
......@@ -39,7 +39,15 @@ InotifyQueue::OnDelay() noexcept
while (!queue.empty()) {
const char *uri_utf8 = queue.front().c_str();
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);
......
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