mirror of
https://github.com/AuxXxilium/eudev.git
synced 2025-01-17 17:46:20 +07:00
dbus: make sure dbus doesn't call us anymore when we unref'ed it
This commit is contained in:
parent
cc91696756
commit
90d3f30b6f
2
dbus.c
2
dbus.c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user