minor safeguard to ensure call integration ends

(cherry picked from commit f18ec53233b52240520bb88d186a8cbe9b6daedc)
This commit is contained in:
Daniel Gultsch 2024-03-25 10:58:20 +01:00 committed by Arne
parent 1e5d649ae8
commit a4bdcd02a7

View file

@ -498,8 +498,8 @@ public class JingleConnectionManager extends AbstractConnectionManager {
final RtpSessionProposal proposal =
getRtpSessionProposal(account, from.asBareJid(), sessionId);
synchronized (rtpSessionProposals) {
// TODO remove the remove()!= null check to ensure we always call busy()
if (proposal != null && rtpSessionProposals.remove(proposal) != null) {
if (proposal != null) {
rtpSessionProposals.remove(proposal);
proposal.callIntegration.busy();
writeLogMissedOutgoing(
account, proposal.with, proposal.sessionId, serverMsgId, timestamp);