summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-10-14 15:59:26 +0200
committerCarl Hetherington <cth@carlh.net>2019-10-14 17:34:40 +0200
commit5edf916ee0261761efae59782a15e1b453e988e7 (patch)
tree54f9c1ef7a4fe15f93eb617d42ec6a0276791500 /src
parent566e3116baeb4b83163d2ca7c0fbddf421940d3d (diff)
Add a comment.v2.15.23
Diffstat (limited to 'src')
-rw-r--r--src/lib/check_content_change_job.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/check_content_change_job.cc b/src/lib/check_content_change_job.cc
index 2bc562f57..e1226e79c 100644
--- a/src/lib/check_content_change_job.cc
+++ b/src/lib/check_content_change_job.cc
@@ -103,6 +103,11 @@ CheckContentChangeJob::run ()
JobManager::instance()->add (_following);
}
+ /* Only set this job as finished once we have added the following job, otherwise I think
+ it's possible that the tests will sporadically fail if they check for all jobs being
+ complete in the gap between this one finishing and _following being added.
+ */
+
set_progress (1);
set_state (FINISHED_OK);
}