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.
2 parents 253aef8 + 3c76539 commit fa5f3c5Copy full SHA for fa5f3c5
Sources/Socket/SocketManager/AsyncSocketManager.swift
@@ -211,9 +211,12 @@ private extension AsyncSocketManager {
211
else { return }
212
log("Will start monitoring")
213
state.isMonitoring = true
214
+
215
// Create top level task to monitor
- Task.detached(priority: state.configuration.monitorPriority) { [unowned self] in
216
- await self.run()
+ // MEMO: Using [weak self] instead of [unowned self] to work around a compiler bug.
217
+ // This issue only occurs in CI environments, where using [unowned self] causes a compiler crash under certain conditions.
218
+ Task.detached(priority: state.configuration.monitorPriority) { [weak self] in
219
+ await self?.run()
220
}
221
222
0 commit comments