]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update
authorAnthony Minessale <anthony.minessale@gmail.com>
Sat, 22 Apr 2006 01:21:53 +0000 (01:21 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Sat, 22 Apr 2006 01:21:53 +0000 (01:21 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1224 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_dingaling/mod_dingaling.c

index 7815e947630c0653335aed429ac6f3c8d9995a26..71dee8351612f7ae1a038fc4143fa487f0d91cba 100644 (file)
@@ -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) {