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

diff --git a/plugins/bluetooth.c b/plugins/bluetooth.c
index dd56e90..59e6dba 100644
--- a/plugins/bluetooth.c
+++ b/plugins/bluetooth.c
@@ -941,6 +941,12 @@ out:
 
 static void bluetooth_exit(void)
 {
+       /*
+        * We unset the disabling of the Bluetooth device when shutting down
+        * so that non-PAN BT connections are not affected.
+        */
+       device_driver.disable = NULL;
+
        connman_network_driver_unregister(&network_driver);
        g_hash_table_destroy(networks);
 
-- 
1.8.3.1

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

Reply via email to