mod_lcr: Add ifdefs around odbc calls in shutdown function
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13268 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
1381ede0a1
commit
591f534578
|
@ -1350,8 +1350,10 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_lcr_load)
|
|||
SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_lcr_shutdown)
|
||||
{
|
||||
|
||||
#ifdef SWITCH_HAVE_ODBC
|
||||
switch_odbc_handle_disconnect(globals.master_odbc);
|
||||
switch_odbc_handle_destroy(&globals.master_odbc);
|
||||
#endif
|
||||
switch_core_hash_destroy(&globals.profile_hash);
|
||||
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
|
|
Loading…
Reference in New Issue