Skip to content

Conversation

@lyrise
Copy link
Contributor

@lyrise lyrise commented Jan 1, 2025

Summary

This PR an issue that was occurring in the GitHub Actions (https://github.com/PureSwift/Socket/actions/runs/11842311918). In CI environments, using [unowned self] was causing a compiler crash under specific conditions. As a workaround, the code has been updated to use [weak self] instead, preventing the crash.

example: https://github.com/lyrise/PureSwiftSocket/actions/runs/12567598902

What does this PR do?

Replaces [unowned self] with [weak self] to avoid a compiler crash in CI environments.
This change ensures stability in CI while the underlying issue is investigated.

Where should the reviewer start?

Review the change in the startMonitoring function in AsyncSocketManager.swift.

@colemancda colemancda merged commit fa5f3c5 into PureSwift:main Jan 2, 2025
@lyrise lyrise deleted the work-around-a-swift-compiler-bug branch January 22, 2025 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants