1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-29 08:16:28 +00:00

Prevent potential race

This commit is contained in:
Pierre HUBERT 2020-04-21 13:29:09 +02:00
parent 4988c8fea8
commit 2858c50449

View File

@ -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 =