3
0
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:
Tim Kourt 2019-08-30 16:46:12 -07:00 committed by Denis Kenzior
parent 6c64016402
commit 589f6182b5

View File

@ -705,6 +705,11 @@ static void get_managed_objects_callback(struct l_dbus_message *message,
proxy_interface_create(path, &object);
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();
return;