Skip to content

Commit 79b4d41

Browse files
committed
Fixed AndroidCentral.connect()
1 parent 4e31a3c commit 79b4d41

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/AndroidBluetooth/AndroidCentral.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,13 @@ public final class AndroidCentral: CentralManager {
164164

165165
// wait for connection continuation
166166
do {
167-
try await withCheckedThrowingContinuation { continuation in
167+
try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<Void, any Error>) in
168168
Task {
169169
// attempt to connect (does not timeout)
170170
await storage.update { [unowned self] state in
171-
171+
172172
// store continuation
173-
let callback = GattCallback(self)
173+
let callback = GattCallback(central: self)
174174
let gatt: BluetoothGatt
175175

176176
// call the correct method for connecting

0 commit comments

Comments
 (0)