We only disconnect PAN connections when ConnMan stops and leave
other BT connections running.
---
 plugins/bluetooth_legacy.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/plugins/bluetooth_legacy.c b/plugins/bluetooth_legacy.c
index 1bd233b..c1c9fbd 100644
--- a/plugins/bluetooth_legacy.c
+++ b/plugins/bluetooth_legacy.c
@@ -1347,6 +1347,12 @@ static void bluetooth_exit(void)
        g_dbus_remove_watch(connection, device_watch);
        g_dbus_remove_watch(connection, network_watch);
 
+       /*
+        * We unset the disabling of the Bluetooth device when shutting down
+        * so that non-PAN BT connections are not affected.
+        */
+       bluetooth_driver.disable = NULL;
+
        bluetooth_disconnect(connection, NULL);
 
        connman_technology_driver_unregister(&tech_driver);
-- 
1.8.3.1

_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

Reply via email to