From: Anthony Minessale Date: Thu, 4 Mar 2010 01:16:48 +0000 (+0000) Subject: add flag X-Git-Tag: v1.0.6~248 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=2d2b4fa6195741d4d7c30664362e04f2e6730115;p=thirdparty%2Ffreeswitch.git add flag git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16892 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_core_asr.c b/src/switch_core_asr.c index a9e82fb41a..fa4446ec46 100644 --- a/src/switch_core_asr.c +++ b/src/switch_core_asr.c @@ -181,6 +181,8 @@ SWITCH_DECLARE(switch_status_t) switch_core_asr_close(switch_asr_handle_t *ah, s switch_assert(ah != NULL); status = ah->asr_interface->asr_close(ah, flags); + switch_set_flag(ah, SWITCH_ASR_FLAG_CLOSED); + UNPROTECT_INTERFACE(ah->asr_interface); if (switch_test_flag(ah, SWITCH_ASR_FLAG_FREE_POOL)) {