]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix seg
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 23 Feb 2007 18:04:52 +0000 (18:04 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 23 Feb 2007 18:04:52 +0000 (18:04 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4371 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_dingaling/mod_dingaling.c

index 60cd3722dbc947becd4009a23ce45478622f3940..867eb6a25e4788fe4212203b4bc517f0e4fbe3fa 100644 (file)
@@ -1169,7 +1169,9 @@ static switch_status_t channel_kill_channel(switch_core_session_t *session, int
         }
         break;
        case SWITCH_SIG_BREAK:
-               switch_rtp_set_flag(tech_pvt->rtp_session, SWITCH_RTP_FLAG_BREAK);
+        if (switch_rtp_ready(tech_pvt->rtp_session)) {
+                       switch_rtp_set_flag(tech_pvt->rtp_session, SWITCH_RTP_FLAG_BREAK);
+               }
                break;
     }