mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix #108, reattach now works properly
This commit is contained in:
parent
d0d5d5ff09
commit
0b2eee8b33
1 changed files with 2 additions and 0 deletions
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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue