diff --git a/hugvey/voice.py b/hugvey/voice.py index bf528c4..f0cb6d4 100644 --- a/hugvey/voice.py +++ b/hugvey/voice.py @@ -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