git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13057
d0543943-73ff-0310-b7d9-
9358b9ac24b2
return SWITCH_STATUS_FALSE;
}
- switch_core_timer_next(&tech_pvt->timer);
-
+ if (!switch_queue_size(tech_pvt->frame_queue)) {
+ switch_core_timer_next(&tech_pvt->timer);
+ }
if (switch_queue_trypop(tech_pvt->frame_queue, &pop) == SWITCH_STATUS_SUCCESS && pop) {
if (tech_pvt->read_frame) {
goto end;
}
-
- switch_core_timer_next(&tech_pvt->timer);
+ if (!switch_queue_size(tech_pvt->frame_queue)) {
+ switch_core_timer_next(&tech_pvt->timer);
+ }
+
if (switch_queue_trypop(tech_pvt->frame_queue, &pop) == SWITCH_STATUS_SUCCESS && pop) {
if (tech_pvt->write_frame) {
switch_frame_free(&tech_pvt->write_frame);