do not attempt retract if onStop was faster than backend connect

This commit is contained in:
Daniel Gultsch 2020-04-23 10:13:10 +02:00
parent a008993d06
commit 60cea03dce

View file

@ -296,8 +296,10 @@ public class RtpSessionActivity extends XmppActivity implements XmppConnectionSe
if (jingleRtpConnection != null) { if (jingleRtpConnection != null) {
releaseVideoTracks(jingleRtpConnection); releaseVideoTracks(jingleRtpConnection);
} else if (!isChangingConfigurations()) { } else if (!isChangingConfigurations()) {
if (xmppConnectionService != null) {
retractSessionProposal(); retractSessionProposal();
} }
}
releaseProximityWakeLock(); releaseProximityWakeLock();
super.onStop(); super.onStop();
} }