Don't call wave_close in fifo.c.

This is handled by calls to espeak_ng_Cancel/espeak_Cancel and
espeak_ng_Terminate/espeak_Terminate.
This commit is contained in:
Reece H. Dunn
2016-02-07 18:25:30 +00:00
parent 674d55e605
commit ca831d236a
-6
View File
@@ -221,10 +221,6 @@ static int sleep_until_start_request_or_inactivity()
static espeak_ng_STATUS close_stream()
{
// Warning: a wave_close can be already required by
// an external command (espeak_Cancel + fifo_stop), if so:
// my_stop_is_required = 1;
espeak_ng_STATUS status = pthread_mutex_lock(&my_mutex);
if (status != ENS_OK)
return status;
@@ -236,8 +232,6 @@ static espeak_ng_STATUS close_stream()
status = pthread_mutex_unlock(&my_mutex);
if (!a_stop_is_required) {
wave_close(NULL);
int a_status = pthread_mutex_lock(&my_mutex);
if (status == ENS_OK)
status = a_status;