From b9e94a9439a077ad0d4c03fa76e55bf695dac393 Mon Sep 17 00:00:00 2001 From: randomdan Date: Fri, 3 Jan 2014 11:08:19 +0000 Subject: Catch all exceptions in scheduled update thread --- p2pvr/lib/maintenance.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/p2pvr/lib/maintenance.cpp b/p2pvr/lib/maintenance.cpp index f2bf012..b31998b 100644 --- a/p2pvr/lib/maintenance.cpp +++ b/p2pvr/lib/maintenance.cpp @@ -85,6 +85,9 @@ Maintenance::ScheduledUpdate() Logger()->messagebf(LOG_ERR, "%s: failed %s: %s", __PRETTY_FUNCTION__, buf, ex.what()); free(buf); } + catch (...) { + Logger()->messagebf(LOG_ERR, "%s: failed (unknown exception)", __PRETTY_FUNCTION__); + } }); update.detach(); } -- cgit v1.2.3