From 25732c82d2fb179749d86cd6d19f728ac96cd6b3 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 22 Sep 2016 19:52:05 -0500 Subject: [PATCH] FS-9557 --- src/switch_rtp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 8d002feb99..9e61003009 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -6643,7 +6643,7 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_ switch_rtp_clear_flag(rtp_session, SWITCH_RTP_FLAG_FLUSH); } - if (rtp_session->flags[SWITCH_RTP_FLAG_BREAK] || (bytes && bytes == 4 && *((int *) &rtp_session->recv_msg) == UINT_MAX)) { + if ((!bytes && rtp_session->flags[SWITCH_RTP_FLAG_BREAK]) || (bytes && bytes == 4 && *((int *) &rtp_session->recv_msg) == UINT_MAX)) { switch_rtp_clear_flag(rtp_session, SWITCH_RTP_FLAG_BREAK); if (!rtp_session->flags[SWITCH_RTP_FLAG_NOBLOCK] || !rtp_session->flags[SWITCH_RTP_FLAG_USE_TIMER] ||