mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-04 04:31:28 +00:00
Fix #108, reattach now works properly
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user