From: Carl Hetherington Date: Mon, 11 Oct 2021 22:13:25 +0000 (+0200) Subject: Hopefully fix race between thread finishing and cleanup being run (#2100). X-Git-Tag: checked-for-v2.16.x~261 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=ace084a4b7595deea9d2bd019e9123a76a0fa1a9 Hopefully fix race between thread finishing and cleanup being run (#2100). --- diff --git a/test/writer_test.cc b/test/writer_test.cc index 9a6541f58..1dfc75bfc 100644 --- a/test/writer_test.cc +++ b/test/writer_test.cc @@ -95,6 +95,7 @@ BOOST_AUTO_TEST_CASE (interrupt_writer) dcpomatic_sleep_seconds (1); thread.interrupt (); + thread.join (); dcpomatic_sleep_seconds (1); cl.run ();