Remove duplicated code
This commit is contained in:
parent
dfce17d325
commit
8715e03c16
|
@ -486,7 +486,6 @@ static switch_status_t channel_on_destroy(switch_core_session_t *session)
|
|||
{
|
||||
switch_channel_t *channel = NULL;
|
||||
loopback_private_t *tech_pvt = NULL;
|
||||
void *pop;
|
||||
switch_event_t *vars;
|
||||
|
||||
channel = switch_core_session_get_channel(session);
|
||||
|
@ -514,10 +513,7 @@ static switch_status_t channel_on_destroy(switch_core_session_t *session)
|
|||
switch_frame_free(&tech_pvt->write_frame);
|
||||
}
|
||||
|
||||
while (switch_queue_trypop(tech_pvt->frame_queue, &pop) == SWITCH_STATUS_SUCCESS && pop) {
|
||||
switch_frame_t *frame = (switch_frame_t *) pop;
|
||||
switch_frame_free(&frame);
|
||||
}
|
||||
clear_queue(tech_pvt);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue