]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
clear flag on destroy
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 28 Jun 2010 13:10:18 +0000 (08:10 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 28 Jun 2010 13:15:55 +0000 (08:15 -0500)
src/switch_core_sqldb.c

index 71cfd416a9d822fc346b31948b1d29c2b7c7be86..c1eee58495752ebfb42ca6cb44dbcef849aa1f31 100644 (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;
        }