Skip to content

Commit 447dfcd

Browse files
committed
Update unpacker.py
1 parent f475fb3 commit 447dfcd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

yaqd-core/yaqd_core/avrorpc/unpacker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ def feed(self, data: bytes):
7373
self._file.seek(0, 2)
7474
if pos == self._file.tell():
7575
# read reached EOF and we are safe to clear
76-
self._file = io.BytesIO()
76+
self._file.seek(0)
77+
self._file.truncate(0)
7778
pos = 0
7879
self._file.write(data)
7980
self._file.seek(pos)

0 commit comments

Comments
 (0)