Add connection destroy logic 35/229835/1
authorWootak Jung <wootak.jung@samsung.com>
Mon, 6 Apr 2020 02:11:00 +0000 (11:11 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Mon, 6 Apr 2020 02:11:15 +0000 (11:11 +0900)
Change-Id: I17dab51a7d074ef64bd22e31450afb7b31d13c52
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
ipsp-agent/bluetooth-ipsp-agent.c

index cd6f471..32a41db 100644 (file)
@@ -709,6 +709,10 @@ static void __bt_ipsp_dbus_method(GDBusConnection *connection,
 
                __bt_ipsp_execute_dhcp6_server();
 
+               if (net_connection) {
+                       connection_destroy(net_connection);
+                       net_connection = NULL;
+               }
        } else if (g_strcmp0(method_name, "SetIpv6Addr") == 0) {
                int ret;
                BT_DBG("");