check poll()

This commit is contained in:
Jonathan Baecker 2019-10-15 17:52:30 +02:00
parent dbcb67bc1e
commit 4a63386bf8

View File

@ -1433,7 +1433,7 @@ def main():
while True: while True:
buf = decoder.stdout.read(65424) buf = decoder.stdout.read(65424)
if not buf: if not buf and decoder.poll() is not None:
break break
encoder.stdin.write(buf) encoder.stdin.write(buf)