Skip to content

Commit

Permalink
code optimization
Browse files Browse the repository at this point in the history
Signed-off-by: Lifubang <lifubang@acmcoder.com>
  • Loading branch information
lifubang committed Oct 9, 2018
1 parent 00f8eb8 commit 57bc65c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cli/command/container/tty.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ func MonitorTtySize(ctx context.Context, cli command.Cli, id string, isExec bool
}

go func() {
timeout := 1 * time.Millisecond
<-time.After(timeout)
time.Sleep(time.Millisecond)
resizeTty()
}()
return nil
Expand Down

0 comments on commit 57bc65c

Please sign in to comment.