1
0
mirror of https://github.com/bingohuang/docker-labs.git synced 2025-07-14 10:17:26 +08:00

Remove stdout if session creator throws an error

This commit is contained in:
Marcos Lilljedahl 2016-10-12 22:46:36 -03:00
parent 3dd5a8b5ef
commit 2e9637b181

View File

@ -43,6 +43,7 @@ func Exec(ws *websocket.Conn) {
}()
go func() {
io.Copy(instance.Conn.Conn, ws)
instance.Stdout.RemoveWriter(u1.String())
}()
select {
case <-ctx.Done():