From f3ee8572ea9803f88d8586f3d818227eefca1411 Mon Sep 17 00:00:00 2001 From: Wootak Jung Date: Tue, 30 Jun 2020 12:47:46 +0900 Subject: [PATCH] [Bluetooth][Non-ACR] Fix LeDevice constructor exception issue (#1765) (#1766) 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