mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 13:02:44 +01:00
client: Set exit status on agent reg. failure
This commit is contained in:
parent
6c64016402
commit
589f6182b5
@ -705,6 +705,11 @@ static void get_managed_objects_callback(struct l_dbus_message *message,
|
|||||||
proxy_interface_create(path, &object);
|
proxy_interface_create(path, &object);
|
||||||
|
|
||||||
if (!agent_manager_register_agent()) {
|
if (!agent_manager_register_agent()) {
|
||||||
|
display_error("Failed to register Agent.\n");
|
||||||
|
|
||||||
|
if (!command_is_interactive_mode())
|
||||||
|
command_set_exit_status(EXIT_FAILURE);
|
||||||
|
|
||||||
l_main_quit();
|
l_main_quit();
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user