diff --git a/apps/app_echo.c b/apps/app_echo.c index 1a8abe9f001c55b4ecb2a3c03a951d185cf5d829..76c701cd70266b1d289629bad290bd42d37605b3 100644 --- a/apps/app_echo.c +++ b/apps/app_echo.c @@ -54,8 +54,9 @@ static int echo_exec(struct ast_channel *chan, void *data) while (ast_waitfor(chan, -1) > -1) { struct ast_frame *f = ast_read(chan); - if (!f) + if (!f) { break; + } f->delivery.tv_sec = 0; f->delivery.tv_usec = 0; if (ast_write(chan, f)) {