protect against exception on initial recording wait

This commit is contained in:
Damien Elmes 2020-07-21 16:07:58 +10:00
parent 412f1777bd
commit 86fc7446b0

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: