From b9be83fa7edf9e8a808b03e17b7288a0aee0d520 Mon Sep 17 00:00:00 2001 From: Naveed Jooma Date: Thu, 21 Nov 2024 17:29:44 -0500 Subject: [PATCH] Update how streams are re-added --- lib/src/media/stream/client.dart | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/lib/src/media/stream/client.dart b/lib/src/media/stream/client.dart index f834a54e9f..8110e98c87 100644 --- a/lib/src/media/stream/client.dart +++ b/lib/src/media/stream/client.dart @@ -24,9 +24,7 @@ class StreamManager { channel = _channel; } - StreamServiceClient get _client { - return StreamServiceClient(_channel); - } + StreamServiceClient get _client => StreamServiceClient(_channel); set channel(WebRtcClientChannel channel) { _errorHandler?.cancel(); @@ -50,12 +48,12 @@ class StreamManager { } }); } - - // Readd pre-existing streams (in the event of reconnection) - _streams.keys.forEach((element) { - _add(element); - }); }; + + // Readd pre-existing streams (in the event of reconnection) + _streams.keys.forEach((element) { + _add(element); + }); } /// Add a stream to internal state