diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-04-08 04:43:47 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-04-08 04:43:47 +0200 |
commit | 90d3f30b6f4272d89177b7e955d11f995e5d3cd4 (patch) | |
tree | f5ee19d80b3777d52e3da44e806f7009228038c3 | |
parent | cc91696756e1747a24def7dee0324db65ae66d7e (diff) |
dbus: make sure dbus doesn't call us anymore when we unref'ed it
-rw-r--r-- | dbus.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -614,6 +614,7 @@ void bus_done_api(Manager *m) { m->system_bus = NULL; dbus_connection_close(m->api_bus); + dbus_connection_set_dispatch_status_function(m->api_bus, NULL, NULL, NULL); dbus_connection_unref(m->api_bus); m->api_bus = NULL; @@ -638,6 +639,7 @@ void bus_done_system(Manager *m) { if (m->system_bus) { dbus_connection_close(m->system_bus); + dbus_connection_set_dispatch_status_function(m->system_bus, NULL, NULL, NULL); dbus_connection_unref(m->system_bus); m->system_bus = NULL; } |