summaryrefslogtreecommitdiff
path: root/src/manager.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-06-04 22:31:33 +0200
committerLennart Poettering <lennart@poettering.net>2010-06-04 22:31:33 +0200
commita013b84b49a7d4a30196949e24ea03066e227626 (patch)
tree8ddc11c70c840204cc989c2fae43493a768bd25b /src/manager.c
parent6dded4c70528150a771f51ce6f15a22c39df9109 (diff)
unit: avoid assert on daemon reload
Diffstat (limited to 'src/manager.c')
-rw-r--r--src/manager.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/manager.c b/src/manager.c
index 735a1aaa4d..e37aa83602 100644
--- a/src/manager.c
+++ b/src/manager.c
@@ -543,6 +543,8 @@ static void manager_clear_jobs_and_units(Manager *m) {
assert(m);
+ manager_dispatch_cleanup_queue(m);
+
while ((j = hashmap_first(m->transaction_jobs)))
job_free(j);
@@ -555,7 +557,6 @@ void manager_free(Manager *m) {
assert(m);
- manager_dispatch_cleanup_queue(m);
manager_clear_jobs_and_units(m);
for (c = 0; c < _UNIT_TYPE_MAX; c++)