Merge pull request #89808 from fuweid/close-resize-chan

remotecommand: close resize channel for notification
This commit is contained in:
Kubernetes Prow Robot 2020-04-06 13:47:46 -07:00 committed by GitHub
commit 9441df3aad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -411,6 +411,7 @@ func (*v1ProtocolHandler) supportsTerminalResizing() bool { return false }
func handleResizeEvents(stream io.Reader, channel chan<- remotecommand.TerminalSize) {
defer runtime.HandleCrash()
defer close(channel)
decoder := json.NewDecoder(stream)
for {