File tree 1 file changed +5
-4
lines changed
Sources/AsyncHTTPClient/ConnectionPool/HTTP2
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ final class HTTP2Connection {
267
267
self . channel. eventLoop. assertInEventLoop ( )
268
268
269
269
switch self . state {
270
- case . active, . starting :
270
+ case . active:
271
271
self . state = . closing
272
272
273
273
// inform all open streams, that the currently running request should be cancelled.
@@ -279,10 +279,11 @@ final class HTTP2Connection {
279
279
// are closed.
280
280
self . channel. triggerUserOutboundEvent ( HTTPConnectionEvent . shutdownRequested, promise: nil )
281
281
282
- case . closed:
283
- // we are already closed and we need to tolerate this
282
+ case . closed, . closing :
283
+ // we are already closing/ closed and we need to tolerate this
284
284
break
285
- case . initialized, . closing:
285
+
286
+ case . initialized, . starting:
286
287
preconditionFailure ( " invalid state \( self . state) " )
287
288
}
288
289
}
You can’t perform that action at this time.
0 commit comments