We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b3b5d0 commit 653858dCopy full SHA for 653858d
Sources/AsyncHTTPClient/ConnectionPool/HTTP2/HTTP2Connection.swift
@@ -279,10 +279,11 @@ final class HTTP2Connection {
279
// are closed.
280
self.channel.triggerUserOutboundEvent(HTTPConnectionEvent.shutdownRequested, promise: nil)
281
282
- case .closed:
283
- // we are already closed and we need to tolerate this
+ case .closed, .closing:
+ // we are already closing/closed and we need to tolerate this
284
break
285
- case .initialized, .closing:
+
286
+ case .initialized:
287
preconditionFailure("invalid state \(self.state)")
288
}
289
0 commit comments