mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 22:17:14 +00:00
Merge pull request #89808 from fuweid/close-resize-chan
remotecommand: close resize channel for notification
This commit is contained in:
commit
9441df3aad
@ -411,6 +411,7 @@ func (*v1ProtocolHandler) supportsTerminalResizing() bool { return false }
|
|||||||
|
|
||||||
func handleResizeEvents(stream io.Reader, channel chan<- remotecommand.TerminalSize) {
|
func handleResizeEvents(stream io.Reader, channel chan<- remotecommand.TerminalSize) {
|
||||||
defer runtime.HandleCrash()
|
defer runtime.HandleCrash()
|
||||||
|
defer close(channel)
|
||||||
|
|
||||||
decoder := json.NewDecoder(stream)
|
decoder := json.NewDecoder(stream)
|
||||||
for {
|
for {
|
||||||
|
Loading…
Reference in New Issue
Block a user