ConnectionService: remove unneeded setDisconnected()
It will be called by the rtp event handler anyway
This commit is contained in:
parent
259b0e69ad
commit
1f2420b38b
|
@ -286,7 +286,6 @@ public class ConnectionService extends android.telecom.ConnectionService {
|
||||||
|
|
||||||
mHandler.post(() -> {
|
mHandler.post(() -> {
|
||||||
rtpConnection.get().rejectCall();
|
rtpConnection.get().rejectCall();
|
||||||
setDisconnected(new DisconnectCause(DisconnectCause.LOCAL));
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -306,11 +305,10 @@ public class ConnectionService extends android.telecom.ConnectionService {
|
||||||
mHandler.post(() -> {
|
mHandler.post(() -> {
|
||||||
if (rtpConnection == null || rtpConnection.get() == null) {
|
if (rtpConnection == null || rtpConnection.get() == null) {
|
||||||
xmppConnectionService.getJingleConnectionManager().retractSessionProposal(account, with.asBareJid());
|
xmppConnectionService.getJingleConnectionManager().retractSessionProposal(account, with.asBareJid());
|
||||||
|
setDisconnected(new DisconnectCause(DisconnectCause.LOCAL));
|
||||||
} else {
|
} else {
|
||||||
rtpConnection.get().endCall();
|
rtpConnection.get().endCall();
|
||||||
}
|
}
|
||||||
|
|
||||||
setDisconnected(new DisconnectCause(DisconnectCause.LOCAL));
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue