diff options
-rw-r--r-- | common/copy.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/copy.go b/common/copy.go index 1d273dc..27bc9ad 100644 --- a/common/copy.go +++ b/common/copy.go @@ -38,6 +38,7 @@ func CopyToFileWithBuffer( for { select { case <-ctx.Done(): + err = ctx.Err() return default: nRead, err = in.Read(buffer[off:Min[int](off+chunkSize, bufSize)]) |