aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/app_speech_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_speech_utils.c b/apps/app_speech_utils.c
index 874c6c69f..211cca5d9 100644
--- a/apps/app_speech_utils.c
+++ b/apps/app_speech_utils.c
@@ -609,7 +609,7 @@ static int speech_background(struct ast_channel *chan, void *data)
/* If audio playback has stopped do a check for timeout purposes */
if (chan->streamid == -1 && chan->timingfunc == NULL)
ast_stopstream(chan);
- if (chan->stream == NULL && timeout > 0 && started == 0) {
+ if (chan->stream == NULL && timeout > 0 && started == 0 && !filename_tmp) {
time(&start);
started = 1;
}