Merge "res_stasis: Add control ref to playback and recording structs."

This commit is contained in:
zuul
2016-03-31 13:20:55 -05:00
committed by Gerrit Code Review
7 changed files with 62 additions and 10 deletions

View File

@@ -296,10 +296,11 @@ static void *bridge_channel_control_thread(void *data)
thread_data = NULL;
stasis_app_control_execute_until_exhausted(bridge_channel, control);
stasis_app_control_flush_queue(control);
ast_hangup(bridge_channel);
ao2_cleanup(control);
stasis_forward_cancel(forward);
ao2_cleanup(control);
ast_hangup(bridge_channel);
return NULL;
}