Skip to content

Commit

Permalink
[GH-420] Fix crash with conditions monitor (#3358)
Browse files Browse the repository at this point in the history
  • Loading branch information
rlepinski authored Jan 29, 2025
1 parent a02c165 commit 1c216e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Airship/AirshipCore/Source/WorkConditionsMonitor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ struct WorkConditionsMonitor: @unchecked Sendable {
conditionsSubject.send()
}

Task { [conditionsSubject] in
for await _ in await networkMonitor.connectionUpdates {
Task { @MainActor [conditionsSubject] in
for await _ in networkMonitor.connectionUpdates {
conditionsSubject.send()
}
}
Expand Down

0 comments on commit 1c216e1

Please sign in to comment.