We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b27e922 commit c049b52Copy full SHA for c049b52
Sources/SwiftOCADevice/OCP.1/Ocp1ControllerInternal.swift
@@ -180,8 +180,8 @@ extension Ocp1ControllerInternal {
180
await withTaskGroup(of: Void.self) { group in
181
do {
182
for try await messageList in messages {
183
- group.addTask {
184
- try? await self.handle(for: endpoint, messageList: messageList)
+ group.addTask { [weak self] in
+ try? await self?.handle(for: endpoint, messageList: messageList)
185
}
186
187
} catch Ocp1Error.notConnected {
0 commit comments