diff --git a/file.c b/file.c
index fa0eb259d3e6d32099dc5b50e28180bb97cbb896..bd90840654802708ba064dd4457e16a188c3d1e1 100755
--- a/file.c
+++ b/file.c
@@ -524,7 +524,7 @@ static int ast_readaudio_callback(void *data)
 	}
 	if (whennext != s->lasttimeout) {
 #ifdef ZAPTEL_OPTIMIZATIONS
-		if (s->timingfd > -1)
+		if (s->owner->timingfd > -1)
 			ast_settimeout(s->owner, whennext, ast_readaudio_callback, s);
 		else
 #else