We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 008c542 commit 9dcb4b3Copy full SHA for 9dcb4b3
Sources/AWSLambdaRuntime/LambdaRuntimeClient.swift
@@ -937,6 +937,7 @@ extension LambdaChannelHandler: ChannelInboundHandler {
937
// fail any pending responses with last error or assume peer disconnected
938
switch self.state {
939
case .connected(_, .waitingForNextInvocation(let continuation)):
940
+ self.state = .disconnected
941
continuation.resume(throwing: self.lastError ?? ChannelError.ioOnClosedChannel)
942
default:
943
break
0 commit comments