Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Downloader/Chunk.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public class Chunk
/// <summary>
/// Gets a value indicating whether more data can be written to this chunk according to the chunk's situation.
/// </summary>
[JsonIgnore] public bool CanWrite => Length <= 0 || Start + Position < End;
[JsonIgnore] public bool CanWrite => Length <= 0 || Start + Position <= End;

/// <summary>
/// Initializes a new instance of the <see cref="Chunk"/> class with default values.
Expand Down Expand Up @@ -120,4 +120,4 @@ public bool IsValidPosition()
{
return Length == 0 || (Position >= 0 && Position <= Length);
}
}
}