main: Plugin and provider cleanup order fixed
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Mon, 12 Nov 2012 12:07:57 +0000 (14:07 +0200)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Fri, 23 Nov 2012 10:58:52 +0000 (12:58 +0200)
We must cleanup the plugin first before cleaning up the provider
because the vpn plugin needs providers from provider hash.

src/main.c

index cee9700..77a071a 100644 (file)
@@ -609,8 +609,8 @@ int main(int argc, char *argv[])
        __connman_wpad_cleanup();
        __connman_dhcpv6_cleanup();
        __connman_dhcp_cleanup();
-       __connman_provider_cleanup();
        __connman_plugin_cleanup();
+       __connman_provider_cleanup();
        __connman_connection_cleanup();
        __connman_timeserver_cleanup();
        __connman_session_cleanup();