main: Re-arrange _exit order

The plugin_exit was in the wrong place, it should be triggered in case
genl creation fails.  Also adhoc_exit was in the wrong sequence compared
to _init()
This commit is contained in:
Denis Kenzior 2018-07-17 19:15:08 -05:00
parent 6b58ab1a08
commit 17bfbbd397
1 changed files with 2 additions and 2 deletions

View File

@ -458,10 +458,9 @@ int main(int argc, char *argv[])
rfkill_exit();
known_networks_exit();
network_exit();
adhoc_exit();
eapol_exit();
eap_exit();
plugin_exit();
adhoc_exit();
l_genl_family_unref(nl80211);
@ -472,6 +471,7 @@ fail_device:
l_genl_unref(genl);
fail_genl:
plugin_exit();
dbus_exit();
done: