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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user