Skip to content

Commit

Permalink
Fix zstandard decoding. (#556)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielballan authored Aug 24, 2023
1 parent 7070881 commit e6ec23a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tiled/client/decoders.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ def flush(self) -> bytes:
class ZStandardDecoder:
def __init__(self):
self._context = zstandard.ZstdDecompressor()
self._obj = self._context.decompressobj()

def decode(self, data: bytes) -> bytes:
return self._context.decompress(data)
return self._obj.decompress(data)

def flush(self) -> bytes:
return b""
Expand Down

0 comments on commit e6ec23a

Please sign in to comment.