Skip to content

Ensure that flush called when there are no in flight data track packets works#1929

Open
1egoman wants to merge 2 commits intomainfrom
make-flush-called-immediately-work
Open

Ensure that flush called when there are no in flight data track packets works#1929
1egoman wants to merge 2 commits intomainfrom
make-flush-called-immediately-work

Conversation

@1egoman
Copy link
Copy Markdown
Contributor

@1egoman 1egoman commented Apr 30, 2026

Previously, if flush was called on a freshly created LocalDataTrack or on a LocalDataTrack which had properly sent all of its packets, it would return a promise which if no more data were sent on the local data track, would never resolve.

Fixes this issue and also adds a few more tests around this and some other flush related edge cases.

Follow up to #1925

…packets works

Previously, if flush was called on a freshly created LocalDataTrack or
on a LocalDataTrack which had properly sent all of its packets, it would
hang forever. Fixes this issue and also adds a few more tests around
this and some other flush related edge cases.
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 30, 2026

⚠️ No Changeset found

Latest commit: 425a022

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@1egoman 1egoman requested review from boks1971, ladvoc and lukasIO April 30, 2026 14:37
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 30, 2026

size-limit report 📦

Path Size
dist/livekit-client.esm.mjs 97.24 KB (+0.11% 🔺)
dist/livekit-client.umd.js 106.07 KB (-0.07% 🔽)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant