We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5dccac commit ef6087eCopy full SHA for ef6087e
Sources/SwiftOCA/OCP.1/Ocp1Connection+Connect.swift
@@ -350,10 +350,10 @@ extension Ocp1Connection {
350
if _connectionState.value != .notConnected {
351
// don't update connection state if we were explicitly disconnected
352
_updateConnectionState(error.ocp1ConnectionState)
353
+ try await _disconnectDeviceAfterConnectionFailure()
354
}
355
356
if _automaticReconnect, error._isRecoverableConnectionError {
- try await _disconnectDeviceAfterConnectionFailure()
357
Task.detached { try await self.reconnectDeviceWithBackoff() }
358
359
0 commit comments