Skip to content

Commit 6e8d198

Browse files
authored
Abort the IETF publisher on session close. (#981)
1 parent 5063750 commit 6e8d198

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

rs/moq-lite/src/ietf/publisher.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ impl<S: web_transport_trait::Session> Publisher<S> {
189189
let group = tokio::select! {
190190
biased;
191191
_ = &mut cancel => return Ok(()),
192+
_ = session.closed() => return Err(Error::Transport),
192193
Some(group) = track.next_group().transpose() => group,
193194
Some(_) = async { Some(old_group.as_mut()?.await) } => {
194195
old_group = None;

0 commit comments

Comments
 (0)