[Freeswitch-trunk] [commit] r12633 - freeswitch/trunk/src/mod/endpoints/mod_sofia

FreeSWITCH SVN mrene at freeswitch.org
Mon Mar 16 15:44:27 PDT 2009


Author: mrene
Date: Mon Mar 16 17:44:27 2009
New Revision: 12633

Log:
tweak

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c	Mon Mar 16 17:44:27 2009
@@ -3332,14 +3332,13 @@
 void sofia_glue_sql_close(sofia_profile_t *profile)
 {
 #ifdef SWITCH_HAVE_ODBC
-	if (profile->odbc_dsn) {
+	if (profile->master_odbc) {
 		switch_odbc_handle_destroy(&profile->master_odbc);
-		return;
 	}
-#endif
-
+#else
 	switch_core_db_close(profile->master_db);
 	profile->master_db = NULL;
+#endif
 }
 
 



More information about the Freeswitch-trunk mailing list