]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
if there is no frame, there is no cng
authorMichael Jerris <mike@jerris.com>
Mon, 14 Jan 2008 22:34:05 +0000 (22:34 +0000)
committerMichael Jerris <mike@jerris.com>
Mon, 14 Jan 2008 22:34:05 +0000 (22:34 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7228 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_esf/mod_esf.c

index 62f60ce53cc4ae399066cdfa239bfc199c5d1a1e..a7ddf54309d16d75c21272c7a009d1fcfb2e1910 100644 (file)
@@ -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;
                }