From: Anthony Minessale Date: Mon, 28 Jun 2010 13:10:18 +0000 (-0500) Subject: clear flag on destroy X-Git-Tag: v1.2-rc1~565^2~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b1d9f5bef7c71940bc0977ed6ec65c5408aab5b;p=thirdparty%2Ffreeswitch.git clear flag on destroy --- diff --git a/src/switch_core_sqldb.c b/src/switch_core_sqldb.c index 71cfd416a9..c1eee58495 100644 --- a/src/switch_core_sqldb.c +++ b/src/switch_core_sqldb.c @@ -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; }