Do not throw if target does not support bluetooth device 52/71852/1
authorJaemin Ryu <jm77.ryu@samsung.com>
Fri, 27 May 2016 10:23:07 +0000 (19:23 +0900)
committerJaemin Ryu <jm77.ryu@samsung.com>
Fri, 27 May 2016 10:23:07 +0000 (19:23 +0900)
Change-Id: I107e352fa57ce47e564c4e372fc12f8034a4a6c1
Signed-off-by: Jaemin Ryu <jm77.ryu@samsung.com>
server/bluetooth.cpp

index 2b58bc4..6fcde5f 100644 (file)
@@ -130,6 +130,10 @@ BluetoothPolicy::BluetoothPolicy(PolicyControlContext& ctxt) :
 
     // Register
     int ret = bt_initialize();
+       if (ret == BT_ERROR_NOT_SUPPORTED) {
+               return;
+       }
+
     if (ret != BT_ERROR_NONE) {
         throw runtime::Exception("failed to initialize the Bluetooth API");
     }