[Freeswitch-svn] [commit] r2328 - freeswitch/trunk/src/mod/endpoints/mod_dingaling

Freeswitch SVN anthm at freeswitch.org
Fri Aug 18 15:29:42 EDT 2006


Author: anthm
Date: Fri Aug 18 15:29:42 2006
New Revision: 2328

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_dingaling/mod_dingaling.c

Log:
tweaks

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	Fri Aug 18 15:29:42 2006
@@ -201,8 +201,10 @@
 			if (state > CS_INIT && state < CS_HANGUP) {
 				channel_on_hangup(*session);
 			}
-			
-			ldl_session_set_private(tech_pvt->dlsession, NULL);
+
+			if (tech_pvt->dlsession) {
+				ldl_session_set_private(tech_pvt->dlsession, NULL);
+			}
 			switch_core_session_destroy(session);
 		}
 	}



More information about the Freeswitch-svn mailing list