mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-12 20:27:19 +00:00
tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12633 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
8ed510458f
commit
a7d7c0ba88
@ -3332,14 +3332,13 @@ int sofia_glue_init_sql(sofia_profile_t *profile)
|
|||||||
void sofia_glue_sql_close(sofia_profile_t *profile)
|
void sofia_glue_sql_close(sofia_profile_t *profile)
|
||||||
{
|
{
|
||||||
#ifdef SWITCH_HAVE_ODBC
|
#ifdef SWITCH_HAVE_ODBC
|
||||||
if (profile->odbc_dsn) {
|
if (profile->master_odbc) {
|
||||||
switch_odbc_handle_destroy(&profile->master_odbc);
|
switch_odbc_handle_destroy(&profile->master_odbc);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
#endif
|
#else
|
||||||
|
|
||||||
switch_core_db_close(profile->master_db);
|
switch_core_db_close(profile->master_db);
|
||||||
profile->master_db = NULL;
|
profile->master_db = NULL;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user