From: Wootak Jung Date: Tue, 30 Jun 2020 03:47:46 +0000 (+0900) Subject: [Bluetooth][Non-ACR] Fix LeDevice constructor exception issue (#1765) (#1766) X-Git-Tag: submit/tizen_5.5/20200701.005146~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f3ee8572ea9803f88d8586f3d818227eefca1411;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [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 --- 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); } }