From 9dde51a70849b873181268f1a6686cf62df58ce5 Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Tue, 12 Oct 2004 21:30:53 +0000 Subject: [PATCH] Eliminate extraneous message (bug #2633) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3984 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_record.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app_record.c b/apps/app_record.c index c1f06780a2..7de7016c0f 100755 --- a/apps/app_record.c +++ b/apps/app_record.c @@ -301,7 +301,7 @@ static int record_exec(struct ast_channel *chan, void *data) ast_log(LOG_WARNING, "Could not answer channel '%s'\n", chan->name); LOCAL_USER_REMOVE(u); - if (silence > 0) { + if ((silence > 0) && rfmt) { res = ast_set_read_format(chan, rfmt); if (res) ast_log(LOG_WARNING, "Unable to restore read format on '%s'\n", chan->name);