From 9b0a2d0fba678831f9b87cde805d686177e4551d Mon Sep 17 00:00:00 2001 From: Alsey Coleman Miller Date: Fri, 28 Apr 2023 00:12:22 -0700 Subject: [PATCH] Updated `L2CAPSocket.close()` --- Sources/Bluetooth/L2CAPSocket.swift | 2 +- Tests/BluetoothTests/L2CAPSocket.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Bluetooth/L2CAPSocket.swift b/Sources/Bluetooth/L2CAPSocket.swift index 6e3d271a8..8255b2fe1 100644 --- a/Sources/Bluetooth/L2CAPSocket.swift +++ b/Sources/Bluetooth/L2CAPSocket.swift @@ -32,7 +32,7 @@ public protocol L2CAPSocket { var securityLevel: SecurityLevel { get async throws } /// Close socket. - func close() async throws + func close() async /// Creates a new socket connected to the remote address specified. static func lowEnergyClient( diff --git a/Tests/BluetoothTests/L2CAPSocket.swift b/Tests/BluetoothTests/L2CAPSocket.swift index da94cd8e3..515a91d1a 100644 --- a/Tests/BluetoothTests/L2CAPSocket.swift +++ b/Tests/BluetoothTests/L2CAPSocket.swift @@ -107,7 +107,7 @@ internal actor TestL2CAPSocket: L2CAPSocket { // MARK: - Methods - func close() async throws { + func close() async { }