From: Mathieu Rene Date: Mon, 16 Mar 2009 22:44:27 +0000 (+0000) Subject: tweak X-Git-Tag: v1.0.4~1503 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7d7c0ba885e4fe2d4020344f471054e2ac2c6fe;p=thirdparty%2Ffreeswitch.git tweak git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12633 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/sofia_glue.c b/src/mod/endpoints/mod_sofia/sofia_glue.c index 5de6d7dab6..b365573da9 100644 --- a/src/mod/endpoints/mod_sofia/sofia_glue.c +++ b/src/mod/endpoints/mod_sofia/sofia_glue.c @@ -3332,14 +3332,13 @@ int sofia_glue_init_sql(sofia_profile_t *profile) 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 }