]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
prevent endless loop (just in case)
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 15 Apr 2009 16:45:40 +0000 (16:45 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 15 Apr 2009 16:45:40 +0000 (16:45 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13034 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_opal/mod_opal.cpp

index ce5876131057f76a8951dc7f796370f3de54bb3a..dd2ba1e7122f93fe9e6f8112ddcb0e061748e138 100644 (file)
@@ -1259,6 +1259,9 @@ switch_status_t FSMediaStream::read_frame(switch_frame_t **frame, switch_io_flag
           \r
         */\r
         while(!GetPatch()) {\r
+            if (!m_fsChannel || !switch_channel_up(m_fsChannel)) {\r
+                return SWITCH_STATUS_FALSE;\r
+            }\r
             switch_cond_next();\r
         }\r
         if (CheckPatchAndLock()) {\r