mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-25 22:39:22 +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;
|
||||
|
||||
// Create a renderer
|
||||
_renderers[memberID] = RTCVideoRenderer()
|
||||
..initialize(); // TODO Use await instead for initialize
|
||||
_renderers[memberID] = RTCVideoRenderer();
|
||||
await _renderers[memberID].initialize();
|
||||
|
||||
// Register callbacks
|
||||
peerConnection.onIceCandidate =
|
||||
|
Loading…
Reference in New Issue
Block a user