mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
protect against exception on initial recording wait
This commit is contained in:
parent
412f1777bd
commit
86fc7446b0
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue