]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
gotta sleep less cos some crappier boxes really stink
authorAnthony Minessale <anthony.minessale@gmail.com>
Sun, 17 Feb 2008 18:11:27 +0000 (18:11 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Sun, 17 Feb 2008 18:11:27 +0000 (18:11 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7661 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_rtp.c

index 24342c41d41f61896266f0f11b1c47205dac2c15..fad958edb0d9fe38013c507946b9643198a4e02f 100644 (file)
@@ -1296,12 +1296,8 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_
                break;
 
        do_continue:
-               
-               if (rtp_session->ms_per_packet) {
-                       switch_yield((rtp_session->ms_per_packet / 1000) * 750);
-               } else {
-                       switch_yield(1000);
-               }
+
+               switch_yield(5000);
        }
 
        *payload_type = (switch_payload_t) rtp_session->recv_msg.header.pt;