We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 991b0b1 commit 9e0d018Copy full SHA for 9e0d018
2 files changed
livekit-rtc/livekit/rtc/data_track.py
@@ -119,7 +119,7 @@ def is_published(self) -> bool:
119
resp = FfiClient.instance.request(req)
120
return resp.local_data_track_is_published.is_published
121
122
- def unpublish(self) -> None:
+ async def unpublish(self) -> None:
123
"""Unpublishes the track."""
124
req = proto_ffi.FfiRequest()
125
req.local_data_track_unpublish.track_handle = self._ffi_handle.handle
tests/rtc/test_e2e.py
@@ -499,7 +499,7 @@ async def push_frames():
499
)
500
local_track.try_push(frame)
501
await asyncio.sleep(0.1)
502
- local_track.unpublish()
+ await local_track.unpublish()
503
504
async def publish_and_receive():
505
push_task = asyncio.create_task(push_frames())
0 commit comments