File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3699,7 +3699,7 @@ static gboolean janus_ice_outgoing_traffic_handle(janus_ice_handle *handle, janu
36993699 janus_plugin * plugin = (janus_plugin * )handle -> app ;
37003700 JANUS_LOG (LOG_VERB , "[%" SCNu64 "] Telling the plugin about the hangup (%s)\n" ,
37013701 handle -> handle_id , plugin ? plugin -> get_name () : "??" );
3702- if (plugin != NULL ) {
3702+ if (plugin != NULL && handle -> app_handle != NULL ) {
37033703 plugin -> hangup_media (handle -> app_handle );
37043704 }
37053705 /* Get rid of the attached sources */
@@ -3725,7 +3725,7 @@ static gboolean janus_ice_outgoing_traffic_handle(janus_ice_handle *handle, janu
37253725 janus_plugin * plugin = (janus_plugin * )handle -> app ;
37263726 JANUS_LOG (LOG_VERB , "[%" SCNu64 "] Telling the plugin about the handle detach (%s)\n" ,
37273727 handle -> handle_id , plugin ? plugin -> get_name () : "??" );
3728- if (plugin != NULL ) {
3728+ if (plugin != NULL && handle -> app_handle != NULL ) {
37293729 int error = 0 ;
37303730 plugin -> destroy_session (handle -> app_handle , & error );
37313731 }
You can’t perform that action at this time.
0 commit comments