Skip to content

Commit

Permalink
Fix stream close on coldsync
Browse files Browse the repository at this point in the history
  • Loading branch information
mcrakhman committed Feb 3, 2025
1 parent b1141b8 commit 9221b30
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nodesync/coldsync/coldsync.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ func (c *coldSync) coldSync(ctx context.Context, spaceId, peerId string) (err er
}
if err = rd.Read(ctx); err != nil {
_ = os.RemoveAll(rd.dir)
_ = stream.Close()
if err == io.EOF {
return ErrRemoteSpaceLocked
} else {
Expand Down

0 comments on commit 9221b30

Please sign in to comment.