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:
Mathieu Rene 2009-05-09 16:51:12 +00:00
parent 1381ede0a1
commit 591f534578
1 changed files with 2 additions and 0 deletions

View File

@ -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;