Stop threads at the start of their object's destruction in all Job cases.
[dcpomatic.git] / src / lib / send_notification_email_job.cc
index abbb844e2f5c2fe6b2a5b72ba3607d94dbd4f7ab..1c9d963388a1eefd1451984481f4b05f1df5484b 100644 (file)
@@ -40,6 +40,11 @@ SendNotificationEmailJob::SendNotificationEmailJob (string body)
 
 }
 
+SendNotificationEmailJob::~SendNotificationEmailJob ()
+{
+       stop_thread ();
+}
+
 string
 SendNotificationEmailJob::name () const
 {