Skip to content

Commit 393bc4f

Browse files
committed
Dont trap on missing context in releaseQueue
1 parent b74c21b commit 393bc4f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Sources/NIOHTTP3/HTTP3UnidirectionalStreamTypeDecoderHandler.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,10 @@ package final class HTTP3UnidirectionalStreamTypeDecoderHandler: ChannelInboundH
6969
/// You should not release the queue before the stream type is known.
7070
private func releaseQueue() {
7171
guard let context = self.context else {
72-
fatalError("Tried to release queue but missing context")
72+
// No context means the stream is closed: no-op.
73+
return
7374
}
75+
7476
// We must call unbufferElement in a loop until `done` is returned
7577
var didFireChannelRead = false
7678
loop: while true {

0 commit comments

Comments
 (0)