1
0
Fork 0
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:
Guillaume J. Charmes 2013-03-29 09:31:47 -07:00
parent d0d5d5ff09
commit 0b2eee8b33

View file

@ -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
}