zeroconf/Avahi: move dbus_shutdown() call to the end of Main()
Calling dbus_shutdown() too early will break the "udisks2" neighbor plugin.
This commit is contained in:
@@ -34,8 +34,6 @@
|
||||
#include <avahi-common/malloc.h>
|
||||
#include <avahi-common/error.h>
|
||||
|
||||
#include <dbus/dbus.h>
|
||||
|
||||
static constexpr Domain avahi_domain("avahi");
|
||||
|
||||
static char *avahi_name;
|
||||
@@ -277,6 +275,4 @@ AvahiDeinit()
|
||||
|
||||
avahi_free(avahi_name);
|
||||
avahi_name = nullptr;
|
||||
|
||||
dbus_shutdown();
|
||||
}
|
||||
|
Reference in New Issue
Block a user