mirror of
https://github.com/nextcloud/talk-android
synced 2025-01-31 11:32:00 +00: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;
|
||||
}
|
||||
|
||||
|
||||
hangupNetworkCalls();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -99,7 +99,7 @@ public class MagicPeerConnectionWrapper {
|
||||
}
|
||||
|
||||
if (peerConnection != null) {
|
||||
peerConnection.dispose();
|
||||
peerConnection.close();
|
||||
peerConnection = null;
|
||||
}
|
||||
}
|
||||
@ -185,7 +185,7 @@ public class MagicPeerConnectionWrapper {
|
||||
|
||||
@Override
|
||||
public void onStateChange() {
|
||||
if (magicDataChannel.state().equals(DataChannel.State.OPEN) &&
|
||||
if (magicDataChannel != null && magicDataChannel.state().equals(DataChannel.State.OPEN) &&
|
||||
magicDataChannel.label().equals("status")) {
|
||||
sendInitialMediaStatus();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user