Skip to content
This repository was archived by the owner on Oct 3, 2025. It is now read-only.

Commit 337358c

Browse files
committed
fix forgot to send done signal when download failed
1 parent c29dd31 commit 337358c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sync.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,10 @@ func (cr *Cluster) syncFiles(ctx context.Context, files []FileInfo, heavyCheck b
552552
case path := <-pathRes:
553553
cr.syncProg.Add(1)
554554
if path == "" {
555+
select {
556+
case done <- nil: // TODO: or all storage?
557+
case <-ctx.Done():
558+
}
555559
return
556560
}
557561
defer os.Remove(path)

0 commit comments

Comments
 (0)