Skip to content

Commit dcde8a9

Browse files
authored
Update how streams are re-added (#304)
1 parent a2e753d commit dcde8a9

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

lib/src/media/stream/client.dart

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ class StreamManager {
2424
channel = _channel;
2525
}
2626

27-
StreamServiceClient get _client {
28-
return StreamServiceClient(_channel);
29-
}
27+
StreamServiceClient get _client => StreamServiceClient(_channel);
3028

3129
set channel(WebRtcClientChannel channel) {
3230
_errorHandler?.cancel();
@@ -50,12 +48,12 @@ class StreamManager {
5048
}
5149
});
5250
}
53-
54-
// Readd pre-existing streams (in the event of reconnection)
55-
_streams.keys.forEach((element) {
56-
_add(element);
57-
});
5851
};
52+
53+
// Readd pre-existing streams (in the event of reconnection)
54+
_streams.keys.forEach((element) {
55+
_add(element);
56+
});
5957
}
6058

6159
/// Add a stream to internal state

0 commit comments

Comments
 (0)