summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/audiohook.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/audiohook.c b/main/audiohook.c
index 0e75cc6cd..930c75e52 100644
--- a/main/audiohook.c
+++ b/main/audiohook.c
@@ -207,7 +207,7 @@ static struct ast_frame *audiohook_read_frame_both(struct ast_audiohook *audioho
}
/* If we want to provide only a write factory make sure we aren't waiting for other audio */
- if (usable_write && !usable_read && (ast_tvdiff_ms(ast_tvnow(), audiohook->write_time) < (samples/8)*2)) {
+ if (usable_write && !usable_read && (ast_tvdiff_ms(ast_tvnow(), audiohook->read_time) < (samples/8)*2)) {
ast_debug(1, "Read factory %p was pretty quick last time, waiting for them.\n", &audiohook->read_factory);
return NULL;
}