mirror of
https://github.com/bingohuang/docker-labs.git
synced 2025-07-14 18:27:25 +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() {
|
go func() {
|
||||||
io.Copy(instance.Conn.Conn, ws)
|
io.Copy(instance.Conn.Conn, ws)
|
||||||
|
instance.Stdout.RemoveWriter(u1.String())
|
||||||
}()
|
}()
|
||||||
select {
|
select {
|
||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user