diff options
Diffstat (limited to 'backends/text-to-speech')
-rw-r--r-- | backends/text-to-speech/windows/windows-text-to-speech.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/backends/text-to-speech/windows/windows-text-to-speech.cpp b/backends/text-to-speech/windows/windows-text-to-speech.cpp index ceca3e4566..9e6d30cd3a 100644 --- a/backends/text-to-speech/windows/windows-text-to-speech.cpp +++ b/backends/text-to-speech/windows/windows-text-to-speech.cpp @@ -128,6 +128,7 @@ DWORD WINAPI startSpeech(LPVOID parameters) { WaitForSingleObject(*params->mutex, INFINITE); // check again, when we have exclusive access to the queue if (params->queue->empty() || *(params->state) == WindowsTextToSpeechManager::PAUSED) { + ReleaseMutex(*params->mutex); break; } WCHAR *currentSpeech = params->queue->front(); |