Skip to content

Commit 07d6898

Browse files
fix CDNDepotFile.read() not returning the whole file
1 parent 06a1057 commit 07d6898

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

steam/client/cdn.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,7 @@ def read(self, length=-1):
357357
chunk_end = chunk_start + chunk.cb_original
358358

359359
if ( chunk_start <= self.offset < chunk_end
360+
or (chunk_end, chunk_start > self.offset and end_offset > chunk_end)
360361
or chunk_start < end_offset <= chunk_end):
361362
if start_offset is None:
362363
start_offset = chunk.offset

0 commit comments

Comments
 (0)