diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-12-02 13:23:51 +0000 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-12-02 13:23:51 +0000 |
| commit | 7dcaeaf3220109910515ec208b7ed6db4e8435a2 (patch) | |
| tree | 278868b97beb188d346f84f802d314cfb13391df /vm/gce/gce.go | |
| parent | 7a0edfbe7c3703a0bf48f01dd818173a68a8f747 (diff) | |
vm/gce: close old consolew in Run
Run can be executed several times on a VM.
Diffstat (limited to 'vm/gce/gce.go')
| -rw-r--r-- | vm/gce/gce.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vm/gce/gce.go b/vm/gce/gce.go index 4c3708ad5..d2ce480ff 100644 --- a/vm/gce/gce.go +++ b/vm/gce/gce.go @@ -228,6 +228,9 @@ func (inst *instance) Run(timeout time.Duration, stop <-chan bool, command strin conWpipe.Close() return nil, nil, err } + if inst.consolew != nil { + inst.consolew.Close() + } inst.consolew = conw if err := con.Start(); err != nil { conRpipe.Close() |
