Skip to content

Commit

Permalink
Update how streams are re-added
Browse files Browse the repository at this point in the history
  • Loading branch information
njooma committed Nov 21, 2024
1 parent a2e753d commit b9be83f
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions lib/src/media/stream/client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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
Expand Down

0 comments on commit b9be83f

Please sign in to comment.