зеркало из https://github.com/microsoft/docker.git
Fix #108, reattach now works properly
This commit is contained in:
Родитель
d0d5d5ff09
Коммит
0b2eee8b33
2
utils.go
2
utils.go
|
@ -220,6 +220,7 @@ func (w *writeBroadcaster) AddWriter(writer io.WriteCloser) {
|
|||
w.writers.PushBack(writer)
|
||||
}
|
||||
|
||||
// FIXME: Is that function used?
|
||||
func (w *writeBroadcaster) RemoveWriter(writer io.WriteCloser) {
|
||||
for e := w.writers.Front(); e != nil; e = e.Next() {
|
||||
v := e.Value.(io.Writer)
|
||||
|
@ -252,6 +253,7 @@ func (w *writeBroadcaster) Close() error {
|
|||
writer := e.Value.(io.WriteCloser)
|
||||
writer.Close()
|
||||
}
|
||||
w.writers.Init()
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче