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/server_finder.cc | |
| parent | b7ef3e79b9eb4f245556e69c68ee624c5b43e126 (diff) | |
assert (joinable) before joining threads.
Diffstat (limited to 'src/lib/server_finder.cc')
| -rw-r--r-- | src/lib/server_finder.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/server_finder.cc b/src/lib/server_finder.cc index 4b532f981..642767e8b 100644 --- a/src/lib/server_finder.cc +++ b/src/lib/server_finder.cc @@ -63,11 +63,13 @@ ServerFinder::~ServerFinder () _search_condition.notify_all (); if (_search_thread) { + DCPOMATIC_ASSERT (_search_thread->joinable ()); _search_thread->join (); } _listen_io_service.stop (); if (_listen_thread) { + DCPOMATIC_ASSERT (_listen_thread->joinable ()); _listen_thread->join (); } } |
