Browse Source

MT#55984 cancel scheduled deletion during offer/answer

Unmark a monologue that has been scheduled for deletion when it's
associated with another one, which happens during offer/answer.

Fixes a regression from 53dbef7e1 which removed this logic from
__monologue_unkernelize with re-adding it elsewhere.

Change-Id: I037162e91fec42631680f7767f58b172fd6e04db
pull/1579/head
Richard Fuchs 3 years ago
parent
commit
afb42551c4
1 changed files with 10 additions and 1 deletions
  1. +10
    -1
      daemon/call.c

+ 10
- 1
daemon/call.c View File

@ -4149,8 +4149,17 @@ struct call_monologue *call_get_or_create_monologue(struct call *call, const str
return ret;
}
/* must be called with call->master_lock held in W */
/**
* Must be called with call->master_lock held in W.
*
* Also cancel scheduled deletion during offer/answer:
*
* Unmark a monologue that has been scheduled for deletion when it's
* associated with another one, which happens during offer/answer.
*/
static void __tags_associate(struct call_monologue *a, struct call_monologue *b) {
a->deleted = 0;
b->deleted = 0;
g_hash_table_insert(a->associated_tags, b, b);
g_hash_table_insert(b->associated_tags, a, a);
}


Loading…
Cancel
Save