mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-29 08:16:28 +00:00
Prevent potential race
This commit is contained in:
parent
4988c8fea8
commit
2858c50449
@ -224,8 +224,8 @@ class _CallScreenState extends SafeState<CallScreen> {
|
|||||||
_peersConnections[memberID] = peerConnection;
|
_peersConnections[memberID] = peerConnection;
|
||||||
|
|
||||||
// Create a renderer
|
// Create a renderer
|
||||||
_renderers[memberID] = RTCVideoRenderer()
|
_renderers[memberID] = RTCVideoRenderer();
|
||||||
..initialize(); // TODO Use await instead for initialize
|
await _renderers[memberID].initialize();
|
||||||
|
|
||||||
// Register callbacks
|
// Register callbacks
|
||||||
peerConnection.onIceCandidate =
|
peerConnection.onIceCandidate =
|
||||||
|
Loading…
Reference in New Issue
Block a user