[commit] r2384 - freeswitch/trunk/src/mod/endpoints/mod_dingaling
Author: anthm Date: Thu Aug 24 15:54:09 2006 New Revision: 2384 Modified: freeswitch/trunk/src/mod/endpoints/mod_dingaling/mod_dingaling.c Log: fix Modified: freeswitch/trunk/src/mod/endpoints/mod_dingaling/mod_dingaling.c ============================================================================== --- freeswitch/trunk/src/mod/endpoints/mod_dingaling/mod_dingaling.c (original) +++ freeswitch/trunk/src/mod/endpoints/mod_dingaling/mod_dingaling.c Thu Aug 24 15:54:09 2006 @@ -184,9 +184,8 @@ struct private_object *tech_pvt = NULL; tech_pvt = switch_core_session_get_private(*session); - assert(tech_pvt != NULL); - if (tech_pvt->dlsession) { + if (tech_pvt && tech_pvt->dlsession) { if (!switch_test_flag(tech_pvt, TFLAG_TERM)) { ldl_session_terminate(tech_pvt->dlsession); switch_set_flag_locked(tech_pvt, TFLAG_TERM); @@ -203,7 +202,7 @@ channel_on_hangup(*session); } - if (tech_pvt->dlsession) { + if (tech_pvt && tech_pvt->dlsession) { ldl_session_set_private(tech_pvt->dlsession, NULL); } switch_core_session_destroy(session);
participants (1)
-
Freeswitch SVN