Stop threads at the start of their object's destruction in all Job cases.
[dcpomatic.git] / src / lib / send_problem_report_job.cc
index 11f700de077490751550913257e8991df05f4d8a..d27609f0bdd715aac50fff167e7dbbaf40b2c042 100644 (file)
@@ -52,6 +52,11 @@ SendProblemReportJob::SendProblemReportJob (
 
 }
 
+SendProblemReportJob::~SendProblemReportJob ()
+{
+       stop_thread ();
+}
+
 string
 SendProblemReportJob::name () const
 {