Stop threads at the start of their object's destruction in all Job cases.
[dcpomatic.git] / src / lib / verify_dcp_job.cc
index 908cd53a7f14d3ae8ad8665a3874d480ebc1661e..c1dcbc7924f4e8b5de653e8f6d53ef5f00a0faaf 100644 (file)
@@ -36,6 +36,11 @@ VerifyDCPJob::VerifyDCPJob (vector<boost::filesystem::path> directories)
 
 }
 
+VerifyDCPJob::~VerifyDCPJob ()
+{
+       stop_thread ();
+}
+
 string
 VerifyDCPJob::name () const
 {