1
0
mirror of https://github.com/docker/docs.git synced 2026-11-05 00:14:17 +03:00

Splice: close destination when copy is over

This commit is contained in:
Solomon Hykes
2014-06-02 00:22:51 +00:00
parent 4963740da3
commit 38d8b4eb03

View File

@@ -77,6 +77,7 @@ func Splice(dst beam.Sender, msg *beam.Message, r beam.Receiver, w beam.Sender)
go func() {
defer tasks.Done()
beamutils.Copy(dst, src)
dst.Close()
}()
}
_copy(dstW, r)