[Freeswitch-svn] [commit] r13034 - freeswitch/trunk/src/mod/endpoints/mod_opal

FreeSWITCH SVN anthm at freeswitch.org
Wed Apr 15 09:45:40 PDT 2009


Author: anthm
Date: Wed Apr 15 11:45:40 2009
New Revision: 13034

Log:
prevent endless loop (just in case)

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_opal/mod_opal.cpp

Modified: freeswitch/trunk/src/mod/endpoints/mod_opal/mod_opal.cpp
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_opal/mod_opal.cpp	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_opal/mod_opal.cpp	Wed Apr 15 11:45:40 2009
@@ -1259,6 +1259,9 @@
           
         */
         while(!GetPatch()) {
+            if (!m_fsChannel || !switch_channel_up(m_fsChannel)) {
+                return SWITCH_STATUS_FALSE;
+            }
             switch_cond_next();
         }
         if (CheckPatchAndLock()) {



More information about the Freeswitch-svn mailing list