clear flag on destroy

This commit is contained in:
Anthony Minessale 2010-06-28 08:10:18 -05:00
parent dc048ed22d
commit 3b1d9f5bef
1 changed files with 1 additions and 0 deletions

View File

@ -155,6 +155,7 @@ SWITCH_DECLARE(void) switch_cache_db_flush_handles(void)
SWITCH_DECLARE(void) switch_cache_db_release_db_handle(switch_cache_db_handle_t ** dbh)
{
if (dbh && *dbh) {
switch_clear_flag(*dbh, CDF_INUSE);
switch_mutex_unlock((*dbh)->mutex);
*dbh = NULL;
}