diff options
author | randomdan <randomdan@localhost> | 2014-01-03 11:08:19 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2014-01-03 11:08:19 +0000 |
commit | b9e94a9439a077ad0d4c03fa76e55bf695dac393 (patch) | |
tree | 5fe2ca71d5b0c4103412aec9f479bebcef243888 | |
parent | Log status when tuning fails with no signal or carrier (diff) | |
download | p2pvr-b9e94a9439a077ad0d4c03fa76e55bf695dac393.tar.bz2 p2pvr-b9e94a9439a077ad0d4c03fa76e55bf695dac393.tar.xz p2pvr-b9e94a9439a077ad0d4c03fa76e55bf695dac393.zip |
Catch all exceptions in scheduled update thread
-rw-r--r-- | p2pvr/lib/maintenance.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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(); } |