diff --git a/main/utils.c b/main/utils.c index cb5018e6e4..e900f7be25 100644 --- a/main/utils.c +++ b/main/utils.c @@ -1071,7 +1071,9 @@ static int ast_wait_for_output(int fd, int timeoutms) while ((res = ast_poll(&pfd, 1, timeoutms - elapsed)) <= 0) { if (res == 0) { /* timed out. */ +#ifndef STANDALONE ast_debug(1, "Timed out trying to write\n"); +#endif return -1; } else if (res == -1) { /* poll() returned an error, check to see if it was fatal */