diff --git a/src/main.c b/src/main.c index a6ea6a95..ef76a575 100644 --- a/src/main.c +++ b/src/main.c @@ -72,13 +72,18 @@ int main(int argc, char *argv[]) l_debug("Bus location: %s", bus_name); + if (!kdbus_open_bus(bus_name, "net.connman.iwd", "iwd")) { + exit_status = EXIT_FAILURE; + goto destroy; + } + l_main_run(); exit_status = EXIT_SUCCESS; +destroy: l_free(bus_name); -destroy: kdbus_destroy_bus(); done: