improved error handling, refs #146 #22

This commit is contained in:
Jakob Ketterl
2020-07-19 19:00:26 +02:00
parent 174e9afa7b
commit c54f19282a
3 changed files with 6 additions and 3 deletions

View File

@ -240,5 +240,5 @@ class AudioChopper(threading.Thread, metaclass=ABCMeta):
try:
readers = wait([w.outputReader for w in self.writers])
return [r.recv() for r in readers]
except EOFError:
except (EOFError, OSError):
return None