From: Michael Jerris Date: Mon, 14 Jan 2008 22:34:05 +0000 (+0000) Subject: if there is no frame, there is no cng X-Git-Tag: v1.0-rc1~680 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e8f3ae5d85ea05c0c40e5f95c7acaf7be23db60;p=thirdparty%2Ffreeswitch.git 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 --- 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; }