protect against exception on initial recording wait

This commit is contained in:
Damien Elmes 2020-07-21 16:07:58 +10:00
parent 7e78d12b99
commit 47a9b523f7

View file

@ -483,7 +483,7 @@ class PyAudioThreadedRecorder(threading.Thread):
frames_per_buffer=chunk,
)
stream.read(wait)
stream.read(wait, exception_on_overflow=False)
data = b""
while not self.finish: