mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-24 04:38:00 +00:00
Motivation: Previously, if we failed in the stream channel initialiser and the stream channel was closed before finishing the stream channel initialiser, we would crash on an assertion because `closedWhileOpen` correctly asserted that it has nothing to do and shouldn't be called. Modification: Apart from `.idle` also stop calling `closedWhileOpen` in `.closed` and `.localActive` because the network actually doesn't think this channel is open. Result: - Fewer crashes - fixes rdar://59342916