diff options
-rw-r--r-- | client/advertising.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/client/advertising.c b/client/advertising.c index 62201d54f..81fa85118 100644 --- a/client/advertising.c +++ b/client/advertising.c @@ -317,6 +317,9 @@ void ad_unregister(DBusConnection *conn, GDBusProxy *manager) if (!manager) ad_release(conn); + if (!registered) + return; + if (g_dbus_proxy_method_call(manager, "UnregisterAdvertisement", unregister_setup, unregister_reply, conn, NULL) == FALSE) { |