only flush on break when its a blocking situation part 1

This commit is contained in:
Anthony Minessale 2012-02-27 13:28:27 -06:00
parent 3a0767865d
commit 62c6855f28

View File

@ -3102,6 +3102,8 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_
do_2833(rtp_session, session);
bytes = 0;
return_cng_frame();
} else {
switch_clear_flag_locked(rtp_session, SWITCH_RTP_FLAG_FLUSH);
}
}