mirror of
https://github.com/KrisKennaway/ii-vision.git
synced 2024-12-30 15:29:26 +00:00
Fix video termination logic
This commit is contained in:
parent
dd422d1156
commit
21a4ac0186
@ -79,7 +79,7 @@ class Movie:
|
||||
:return:
|
||||
"""
|
||||
for op in ops:
|
||||
if self.stream_pos >= self.max_bytes_out:
|
||||
if self.max_bytes_out and self.stream_pos >= self.max_bytes_out:
|
||||
yield from self.done()
|
||||
return
|
||||
# Keep track of where we are in TCP client socket buffer
|
||||
@ -89,6 +89,8 @@ class Movie:
|
||||
yield from self._emit_bytes(opcodes.Ack())
|
||||
yield from self._emit_bytes(op)
|
||||
|
||||
yield from self.done()
|
||||
|
||||
def done(self) -> Iterator[int]:
|
||||
"""Terminate opcode stream.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user