mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-22 04:59:34 +01:00
Fix cleanups again
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
b7539bfc12
commit
3f21d8bfbe
@ -1009,9 +1009,7 @@ public class CallActivity extends AppCompatActivity {
|
|||||||
peerConnectionFactory = null;
|
peerConnectionFactory = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
hangupNetworkCalls();
|
hangupNetworkCalls();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -99,7 +99,7 @@ public class MagicPeerConnectionWrapper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (peerConnection != null) {
|
if (peerConnection != null) {
|
||||||
peerConnection.dispose();
|
peerConnection.close();
|
||||||
peerConnection = null;
|
peerConnection = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -185,7 +185,7 @@ public class MagicPeerConnectionWrapper {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onStateChange() {
|
public void onStateChange() {
|
||||||
if (magicDataChannel.state().equals(DataChannel.State.OPEN) &&
|
if (magicDataChannel != null && magicDataChannel.state().equals(DataChannel.State.OPEN) &&
|
||||||
magicDataChannel.label().equals("status")) {
|
magicDataChannel.label().equals("status")) {
|
||||||
sendInitialMediaStatus();
|
sendInitialMediaStatus();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user