Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ESPProvision/Transport/ESPBleTransport.swift
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ extension ESPBleTransport: CBPeripheralDelegate {

ESPLog.log("Writing value for characterisitic \(characteristic)")
guard error == nil else {
transportToken.signal()
currentRequestCompletionHandler?(nil, error)
return
}
Expand All @@ -343,6 +344,7 @@ extension ESPBleTransport: CBPeripheralDelegate {
func peripheral(_: CBPeripheral, didUpdateValueFor characteristic: CBCharacteristic, error: Error?) {
ESPLog.log("Updating value for characterisitic \(characteristic)")
guard error == nil else {
transportToken.signal()
currentRequestCompletionHandler?(nil, error)
return
}
Expand Down