Merge pull request #1020 from giuseppe/resize-fix-loop

utils: fix endless write of resize event
This commit is contained in:
Daniel J Walsh 2018-06-28 17:43:58 -04:00 committed by GitHub
commit 183cde0c68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -182,6 +182,7 @@ func resizeTty(ctx context.Context, resize chan remotecommand.TerminalSize) {
case <-sigchan:
resizeEvent = getResize()
case resize <- *resizeEvent:
resizeEvent = nil
}
}
}