From 3e8f3ae5d85ea05c0c40e5f95c7acaf7be23db60 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Mon, 14 Jan 2008 22:34:05 +0000 Subject: [PATCH] if there is no frame, there is no cng git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7228 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_esf/mod_esf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/applications/mod_esf/mod_esf.c b/src/mod/applications/mod_esf/mod_esf.c index 62f60ce53c..a7ddf54309 100644 --- a/src/mod/applications/mod_esf/mod_esf.c +++ b/src/mod/applications/mod_esf/mod_esf.c @@ -136,7 +136,7 @@ SWITCH_STANDARD_APP(bcast_function) while(!ready) { status = switch_core_session_read_frame(session, &read_frame, -1, 0); - if (switch_test_flag(read_frame, SFF_CNG)) { + if (read_frame && switch_test_flag(read_frame, SFF_CNG)) { continue; }