From 0b47a55187307cefa3c3ef1b74b16da21c29bfdb Mon Sep 17 00:00:00 2001 From: Wootak Jung Date: Tue, 30 Jun 2020 10:58:35 +0900 Subject: [PATCH] [Bluetooth][Non-ACR] Fix LeDevice constructor exception issue (#1765) 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 --- src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothGatt.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothGatt.cs b/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothGatt.cs index 11d42e0..3b532af 100644 --- a/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothGatt.cs +++ b/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothGatt.cs @@ -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); } } -- 2.7.4