mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -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,
|
frames_per_buffer=chunk,
|
||||||
)
|
)
|
||||||
|
|
||||||
stream.read(wait)
|
stream.read(wait, exception_on_overflow=False)
|
||||||
|
|
||||||
data = b""
|
data = b""
|
||||||
while not self.finish:
|
while not self.finish:
|
||||||
|
|
Loading…
Reference in a new issue