mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
don't wait as long for player to stop
This commit is contained in:
parent
d2336f3829
commit
b9ee7f49d8
1 changed files with 1 additions and 1 deletions
|
@ -252,7 +252,7 @@ class SimpleProcessPlayer(Player): # pylint: disable=abstract-method
|
|||
self._terminate_flag = True
|
||||
# block until stopped
|
||||
t = time.time()
|
||||
while self._terminate_flag and time.time() - t < 10:
|
||||
while self._terminate_flag and time.time() - t < 1:
|
||||
time.sleep(0.1)
|
||||
|
||||
def _play(self, tag: AVTag) -> None:
|
||||
|
|
Loading…
Reference in a new issue