There was an error while loading. Please reload this page.
2 parents c2b8191 + ce1b8db commit 18042a1Copy full SHA for 18042a1
1 file changed
src/Downloader/Chunk.cs
@@ -60,7 +60,7 @@ public class Chunk
60
/// <summary>
61
/// Gets a value indicating whether more data can be written to this chunk according to the chunk's situation.
62
/// </summary>
63
- [JsonIgnore] public bool CanWrite => Length <= 0 || Start + Position < End;
+ [JsonIgnore] public bool CanWrite => Length <= 0 || Start + Position <= End;
64
65
66
/// Initializes a new instance of the <see cref="Chunk"/> class with default values.
@@ -120,4 +120,4 @@ public bool IsValidPosition()
120
{
121
return Length == 0 || (Position >= 0 && Position <= Length);
122
}
123
-}
+}
0 commit comments