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:
parent
3dd5a8b5ef
commit
2e9637b181
@ -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():
|
||||
|
Loading…
x
Reference in New Issue
Block a user