mirror of
https://github.com/apple/container.git
synced 2026-10-11 16:51:39 +00:00
forwarder: close backend channel immediately if frontend closes (#2260)
Signed-off-by: Eric Ernst <eric_ernst@apple.com>
This commit is contained in:
1 parent
b61450b6e8
commit
33ebc8ae67
1 file changed
+1
-1
@@ -62,7 +62,7 @@ extension ConnectHandler {
|
||||
case .success(let channel):
|
||||
guard context.channel.isActive else {
|
||||
self.log?.trace("backend - frontend channel closed, closing backend connection")
|
||||
context.channel.close(promise: nil)
|
||||
channel.close(promise: nil)
|
||||
return
|
||||
}
|
||||
self.log?.trace("backend - connected")
|
||||
|
||||
Reference in new issue
Block a user