ConnectionService: remove unneeded setDisconnected()

It will be called by the rtp event handler anyway
This commit is contained in:
Peter Cai 2022-03-12 21:43:36 -05:00
parent 259b0e69ad
commit 1f2420b38b
1 changed files with 1 additions and 3 deletions

View File

@ -286,7 +286,6 @@ public class ConnectionService extends android.telecom.ConnectionService {
mHandler.post(() -> {
rtpConnection.get().rejectCall();
setDisconnected(new DisconnectCause(DisconnectCause.LOCAL));
});
}
@ -306,11 +305,10 @@ public class ConnectionService extends android.telecom.ConnectionService {
mHandler.post(() -> {
if (rtpConnection == null || rtpConnection.get() == null) {
xmppConnectionService.getJingleConnectionManager().retractSessionProposal(account, with.asBareJid());
setDisconnected(new DisconnectCause(DisconnectCause.LOCAL));
} else {
rtpConnection.get().endCall();
}
setDisconnected(new DisconnectCause(DisconnectCause.LOCAL));
});
}