diff --git a/fs/sync/sync.go b/fs/sync/sync.go index e8ce10ad1..0a6cfdfb7 100644 --- a/fs/sync/sync.go +++ b/fs/sync/sync.go @@ -264,6 +264,9 @@ func (s *syncCopyMove) processError(err error) { // Cancel the march and stop the pipes s.inCancel() } + } else if err == context.Canceled && s.inCtx.Err() != nil { + // Ignore context Canceled if we have called s.inCancel() + return } s.errorMu.Lock() defer s.errorMu.Unlock()