[Bluetooth][Non-ACR] Fix LeDevice constructor exception issue (#1765) (#1766)
authorWootak Jung <wootak.jung@samsung.com>
Tue, 30 Jun 2020 03:47:46 +0000 (12:47 +0900)
committerGitHub <noreply@github.com>
Tue, 30 Jun 2020 03:47:46 +0000 (12:47 +0900)
Exception is occured on BluetoothLeDevice constructor if GATT not supported.
BluetoothGattClient.StaticConnectionStateChanged += (s, e) =>
Remove exception throw logic on the event handler StaticConnectionStateChanged for consistency

Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothGatt.cs

index 11d42e0..3b532af 100644 (file)
@@ -359,7 +359,6 @@ namespace Tizen.Network.Bluetooth
             if (ret != (int)BluetoothError.None)
             {
                 Log.Error(Globals.LogTag, "Failed to set gatt connection state changed callback, Error - " + (BluetoothError)ret);
-                BluetoothErrorFactory.ThrowBluetoothException(ret);
             }
         }
 
@@ -369,7 +368,6 @@ namespace Tizen.Network.Bluetooth
             if (ret != (int)BluetoothError.None)
             {
                 Log.Error(Globals.LogTag, "Failed to unset gatt connection state changed callback, Error - " + (BluetoothError)ret);
-                BluetoothErrorFactory.ThrowBluetoothException(ret);
             }
         }