summaryrefslogtreecommitdiff
path: root/src/lib/send_kdm_email_job.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-03-06 22:36:16 +0100
committerCarl Hetherington <cth@carlh.net>2020-03-06 22:36:16 +0100
commitcaf67bef2611a911307267b20dbf3be89ffff71f (patch)
tree66c55e40b1b5a44c8670f8ecb98df2b7ce8bdf68 /src/lib/send_kdm_email_job.cc
parentf6557e4bedd788a026d48fe883cb48a1070dc886 (diff)
Stop threads at the start of their object's destruction in all Job cases.
Diffstat (limited to 'src/lib/send_kdm_email_job.cc')
-rw-r--r--src/lib/send_kdm_email_job.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/send_kdm_email_job.cc b/src/lib/send_kdm_email_job.cc
index 38484b91e..1b476fa63 100644
--- a/src/lib/send_kdm_email_job.cc
+++ b/src/lib/send_kdm_email_job.cc
@@ -53,6 +53,11 @@ SendKDMEmailJob::SendKDMEmailJob (
}
+SendKDMEmailJob::~SendKDMEmailJob ()
+{
+ stop_thread ();
+}
+
string
SendKDMEmailJob::name () const
{