mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 21:22:37 +01:00
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:
parent
6b58ab1a08
commit
17bfbbd397
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user