clear flag on destroy
This commit is contained in:
parent
dc048ed22d
commit
3b1d9f5bef
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue