summaryrefslogtreecommitdiff
path: root/src/lib/update_checker.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-07-03 20:36:20 +0100
committerCarl Hetherington <cth@carlh.net>2016-07-03 20:36:20 +0100
commit8862cbbb7e857c90d405069ad7d41a8d58029194 (patch)
treeebce1a0209f05784f96321be82236d28b647e37a /src/lib/update_checker.cc
parenta4c5a9ff48c4cec51e3488f4f8692bf2a2f82dca (diff)
Remove several exception-throwing asserts from destructors.
Diffstat (limited to 'src/lib/update_checker.cc')
-rw-r--r--src/lib/update_checker.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/update_checker.cc b/src/lib/update_checker.cc
index e3bbd663e..58bc7c1b7 100644
--- a/src/lib/update_checker.cc
+++ b/src/lib/update_checker.cc
@@ -86,8 +86,12 @@ UpdateChecker::~UpdateChecker ()
_condition.notify_all ();
if (_thread) {
- DCPOMATIC_ASSERT (_thread->joinable ());
- _thread->join ();
+ /* Ideally this would be a DCPOMATIC_ASSERT(_thread->joinable()) but we
+ can't throw exceptions from a destructor.
+ */
+ if (_thread->joinable ()) {
+ _thread->join ();
+ }
}
delete _thread;