avoid double termination after failed connection
This commit is contained in:
parent
e0cb127005
commit
876b1149d5
|
@ -958,8 +958,14 @@ public class JingleRtpConnection extends AbstractJingleConnection implements Web
|
|||
|
||||
private void closeWebRTCSessionAfterFailedConnection() {
|
||||
this.webRTCWrapper.close();
|
||||
synchronized (this) {
|
||||
if (TERMINATED.contains(state)) {
|
||||
Log.d(Config.LOGTAG, id.account.getJid().asBareJid() + ": no need to send session-terminate after failed connection. Other party already did");
|
||||
return;
|
||||
}
|
||||
sendSessionTerminate(Reason.CONNECTIVITY_ERROR);
|
||||
}
|
||||
}
|
||||
|
||||
public AppRTCAudioManager getAudioManager() {
|
||||
return webRTCWrapper.getAudioManager();
|
||||
|
|
Loading…
Reference in New Issue