mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-24 11:12:11 +01:00
gdbusdaemon: Fix NameHasOwner wrt unique names
Each client also owns its unique name
This commit is contained in:
parent
bc2f7c1a06
commit
befcee6f0b
@ -1081,11 +1081,13 @@ handle_name_has_owner (_GFreedesktopDBus *object,
|
||||
{
|
||||
GDBusDaemon *daemon = G_DBUS_DAEMON (object);
|
||||
Name *name;
|
||||
Client *client;
|
||||
|
||||
name = name_lookup (daemon, arg_name);
|
||||
client = g_hash_table_lookup (daemon->clients, arg_name);
|
||||
|
||||
_g_freedesktop_dbus_complete_name_has_owner (object, invocation,
|
||||
name != NULL);
|
||||
name != NULL || client != NULL);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user