Retry voice when request failed
This commit is contained in:
parent
72547ae673
commit
080cd1bcee
1 changed files with 2 additions and 1 deletions
|
@ -51,7 +51,8 @@ class VoiceStorage(object):
|
|||
if os.path.exists(fn):
|
||||
return fn
|
||||
|
||||
if id in self.pendingRequests:
|
||||
if id in self.pendingRequests and not self.pendingRequests[id].is_set():
|
||||
#: :type self.pendingRequests[id] asyncio.Event
|
||||
await self.pendingRequests[id].wait()
|
||||
if os.path.exists(fn):
|
||||
return fn
|
||||
|
|
Loading…
Reference in a new issue