diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-09-24 16:03:21 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-09-24 16:03:21 +0100 |
| commit | e975b14d2c962eab149f56a79c35b68b608226d4 (patch) | |
| tree | 0959a5d0f4680538c1f080659e82b5bf073bba6c /src/lib/update_checker.cc | |
| parent | b7ef3e79b9eb4f245556e69c68ee624c5b43e126 (diff) | |
assert (joinable) before joining threads.
Diffstat (limited to 'src/lib/update_checker.cc')
| -rw-r--r-- | src/lib/update_checker.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/update_checker.cc b/src/lib/update_checker.cc index 4ee728fde..4c5075e20 100644 --- a/src/lib/update_checker.cc +++ b/src/lib/update_checker.cc @@ -86,6 +86,7 @@ UpdateChecker::~UpdateChecker () _condition.notify_all (); if (_thread) { + DCPOMATIC_ASSERT (_thread->joinable ()); _thread->join (); } delete _thread; |
