diff --git a/lib/src/media/stream/client.dart b/lib/src/media/stream/client.dart index f834a54e9f6..8110e98c870 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