mirror of git://git.sysmocom.de/ofono
Fix the case when the requested name is already in use
We weren't setting the dbus error in this situation.
This commit is contained in:
parent
f721ef55e3
commit
a181ec319b
|
@ -347,8 +347,12 @@ gboolean g_dbus_request_name(DBusConnection *connection, const char *name,
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
if (result != DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER)
|
||||
if (result != DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER) {
|
||||
if (error != NULL)
|
||||
dbus_set_error(error, name, "Name already in use");
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue