1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-12-26 12:58:51 +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;
// Create a renderer
_renderers[memberID] = RTCVideoRenderer()
..initialize(); // TODO Use await instead for initialize
_renderers[memberID] = RTCVideoRenderer();
await _renderers[memberID].initialize();
// Register callbacks
peerConnection.onIceCandidate =