From 77b7a209e28488134448bb1b8b6ddc569ff92fe6 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Sat, 22 Apr 2006 01:21:53 +0000 Subject: [PATCH] update git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1224 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_dingaling/mod_dingaling.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/mod/endpoints/mod_dingaling/mod_dingaling.c b/src/mod/endpoints/mod_dingaling/mod_dingaling.c index 7815e94763..71dee83516 100644 --- a/src/mod/endpoints/mod_dingaling/mod_dingaling.c +++ b/src/mod/endpoints/mod_dingaling/mod_dingaling.c @@ -307,6 +307,9 @@ static int do_candidates(struct private_object *tech_pvt, int force) assert(channel != NULL); tech_pvt->next_cand += DL_CAND_WAIT; + if (switch_test_flag(tech_pvt, TFLAG_BYE)) { + return -1; + } if (force || !switch_test_flag(tech_pvt, TFLAG_RTP_READY)) { ldl_candidate_t cand[1]; @@ -384,6 +387,10 @@ static int do_describe(struct private_object *tech_pvt, int force) tech_pvt->next_desc += DL_CAND_WAIT; + if (switch_test_flag(tech_pvt, TFLAG_BYE)) { + return -1; + } + memset(payloads, 0, sizeof(payloads)); if (!tech_pvt->num_codecs) {