diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-05-29 00:56:25 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-05-29 00:56:25 +0100 |
| commit | f2dd76c91f1fd314df12d5dff3b736daf783b9b3 (patch) | |
| tree | f98fcbdb47f849f3168aaadb0d65e04863c2593f /src/wx/job_view.cc | |
| parent | c0a35cebbdd2b2504011ebce1c9885479f78d1d1 (diff) | |
Fix job ordering when sending notification emails (more of #1286).
Diffstat (limited to 'src/wx/job_view.cc')
| -rw-r--r-- | src/wx/job_view.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wx/job_view.cc b/src/wx/job_view.cc index d0086ff81..43d6f2fed 100644 --- a/src/wx/job_view.cc +++ b/src/wx/job_view.cc @@ -142,7 +142,7 @@ JobView::finished () string body = Config::instance()->notification_email(); boost::algorithm::replace_all (body, "$JOB_NAME", _job->name()); boost::algorithm::replace_all (body, "$JOB_STATUS", _job->status()); - JobManager::instance()->add (shared_ptr<Job> (new SendNotificationEmailJob (body))); + JobManager::instance()->add_after (_job, shared_ptr<Job> (new SendNotificationEmailJob (body))); } } } |
