Open
Conversation
Use events.once instead of events.on so the deferred EngineTrackAddedEvent fires only on the next connected event and does not persist across future reconnects.
Ensure the _regionUrlProvider null check gates both exception branches so ConnectException does not bypass the guard and dereference a null provider.
Initialize the reconnect attempt counter so the first reconnect path does not hit a null assertion before retry handling begins.
Change return type from void to Future<void> so callers can await errors and the async body is not silently fire-and-forget.
Check completer.isCompleted in the while loop so the polling stops when the EngineClosingEvent fires, instead of spinning forever.
Wrap event.response.clientConfiguration.forceRelay in ${} so the full
property path is interpolated instead of printing the Event object.
Use the pc parameter passed to _handleGettingConnectedServerAddress instead of always using publisher.pc, so subscriber connections report the correct remote address.
Remove the first pub.dispose() call in removePublishedTrack so track cleanup (stop, removeTrack, negotiate, onUnpublish) runs before the track is disposed. Fixes both LocalParticipant and RemoteParticipant.
|
Caution Breaking change detected without major changeset
If this is intentional, please add a changeset with |
Add missing await after sendSyncState return type was changed to Future<void>, fixing the unawaited_futures analyzer warning.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A collection of minor/simple fixes.