Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit 8cbafc7

Browse files
committed
Fix resize cancel exit
1 parent 7ba07e9 commit 8cbafc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: cmd/coder/shell.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func sendResizeEvents(ctx context.Context, termfd int, process wsep.Process) {
5151
// Limit the frequency of resizes to prevent a stuttering effect.
5252
resizeLimiter := rate.NewLimiter(rate.Every(time.Millisecond*100), 1)
5353

54-
for {
54+
for ctx.Err() == nil {
5555
if ctx.Err() != nil {
5656
return
5757
}

0 commit comments

Comments
 (0)