summaryrefslogtreecommitdiff
path: root/src/job.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-02-23 18:46:57 +0100
committerLennart Poettering <lennart@poettering.net>2011-02-23 18:46:57 +0100
commit23e1e0c4a3bc93fb841ac9575953ed5d0ef5282d (patch)
treeea2296cfbf02115190c4fb36a079c82377cd2972 /src/job.c
parentb61e476f510999c687d3c76193a98aa5cd1f9a73 (diff)
job: start job timer when we begin running the job, not already when we add it to the queue of jobs
Diffstat (limited to 'src/job.c')
-rw-r--r--src/job.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/job.c b/src/job.c
index 4700aab6ac..ec57144cb7 100644
--- a/src/job.c
+++ b/src/job.c
@@ -376,6 +376,7 @@ int job_run_and_invalidate(Job *j) {
j->state = JOB_RUNNING;
job_add_to_dbus_queue(j);
+ job_start_timer(j);
/* While we execute this operation the job might go away (for
* example: because it is replaced by a new, conflicting
@@ -394,6 +395,7 @@ int job_run_and_invalidate(Job *j) {
* wait */
if (r == -EBADR)
r = 0;
+
break;
case JOB_VERIFY_ACTIVE: {