Skip to content

Commit 74a084b

Browse files
committed
Update BluetoothLEManager.swift
1 parent 273f841 commit 74a084b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/bluetooth-law-energy-swift/BluetoothLEManager.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ public final class BluetoothLEManager: NSObject, ObservableObject, IBluetoothLEM
113113
return try await attemptFetchServices(for: peripheral, cache: cache)
114114
} catch { }
115115

116+
try Task.checkCancellation()
116117
try await Task.sleep(nanoseconds: delay)
117118

118119
if cache, let services = cachedServices.fetch(for: peripheral) {

0 commit comments

Comments
 (0)