How many attempts have I made to fix this bug?
This commit is contained in:
parent
dc1d036f02
commit
4f5920866a
|
@ -29,7 +29,7 @@ class CappedBufferedReader(io.BufferedReader):
|
|||
elif whence == os.SEEK_SET:
|
||||
current_pos = self.tell()
|
||||
if current_pos > offset:
|
||||
self.capped_size += current_pos - offset
|
||||
self.capped_size += current_pos
|
||||
return super().seek(offset, whence)
|
||||
|
||||
@property
|
||||
|
|
Loading…
Reference in New Issue