summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-05-16 03:57:56 +0200
committerLennart Poettering <lennart@poettering.net>2010-05-16 03:57:56 +0200
commit37a8e6831650bdf6439038d802775b182fa599e7 (patch)
tree8faef8ae360d359297ade184e6fb72246c1dfab8
parent94b6dfa24f84bd8854c1dc566413b0719dce9e0d (diff)
manager: rearrange order of mainloop, put gc/cleanup last to maximize reusing
-rw-r--r--manager.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/manager.c b/manager.c
index 767533484e..89b210d6a3 100644
--- a/manager.c
+++ b/manager.c
@@ -1949,19 +1949,19 @@ int manager_loop(Manager *m) {
sleep(1);
}
- if (manager_dispatch_cleanup_queue(m) > 0)
+ if (manager_dispatch_load_queue(m) > 0)
continue;
- if (manager_dispatch_gc_queue(m) > 0)
+ if (manager_dispatch_run_queue(m) > 0)
continue;
- if (manager_dispatch_load_queue(m) > 0)
+ if (bus_dispatch(m) > 0)
continue;
- if (manager_dispatch_run_queue(m) > 0)
+ if (manager_dispatch_cleanup_queue(m) > 0)
continue;
- if (bus_dispatch(m) > 0)
+ if (manager_dispatch_gc_queue(m) > 0)
continue;
if (manager_dispatch_dbus_queue(m) > 0)