Skip to content

Commit a57d082

Browse files
committed
treat all errors during keepAlive as missed keepalives
error from receiveMessages() task will raise cancellation error on keepAlive task
1 parent 5f55d01 commit a57d082

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftOCA/OCP.1/Ocp1ConnectionMonitor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ extension Ocp1Connection.Monitor {
142142
group.addTask(priority: .background) { [self] in
143143
do {
144144
try await keepAlive(connection)
145-
} catch Ocp1Error.missingKeepalive {
145+
} catch {
146146
try await connection.didMissKeepAlive()
147147
}
148148
}

0 commit comments

Comments
 (0)