summaryrefslogtreecommitdiff
path: root/src/dbus-job.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-02-24 03:23:14 +0100
committerLennart Poettering <lennart@poettering.net>2011-02-24 03:23:14 +0100
commitc77bc38d28b2da11dcd219635205e633b5c0cd28 (patch)
treeba5e6a8f06d755a8752dcf8245ca140b3a807050 /src/dbus-job.c
parent312732cfaf63b463b2062c47fddb2d639a5fe635 (diff)
job: when cancelling jobs, make sure to propagate this properly to depending jobs
Diffstat (limited to 'src/dbus-job.c')
-rw-r--r--src/dbus-job.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dbus-job.c b/src/dbus-job.c
index 16aa8d071e..2a33039bdb 100644
--- a/src/dbus-job.c
+++ b/src/dbus-job.c
@@ -97,7 +97,7 @@ static DBusHandlerResult bus_job_message_dispatch(Job *j, DBusConnection *connec
if (!(reply = dbus_message_new_method_return(message)))
goto oom;
- job_free(j);
+ job_finish_and_invalidate(j, JOB_CANCELED);
} else
return bus_default_message_handler(j->manager, connection, message, INTROSPECTION, properties);