From 19a7f1c42431b5f08e6d3949a1c93d4b782a4b4c Mon Sep 17 00:00:00 2001 From: streamer45 Date: Fri, 2 Jan 2026 09:47:51 +0100 Subject: [PATCH] fix(nodes): handle moq cancelled error --- crates/nodes/src/transport/moq/pull.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/crates/nodes/src/transport/moq/pull.rs b/crates/nodes/src/transport/moq/pull.rs index b402dfee..49114ccc 100644 --- a/crates/nodes/src/transport/moq/pull.rs +++ b/crates/nodes/src/transport/moq/pull.rs @@ -718,8 +718,16 @@ impl MoqPullNode { ); return Ok(StreamEndReason::Natural); }, + Err(moq_lite::Error::Cancel) => { + tracing::debug!( + session_packet_count, + total_packet_count = *total_packet_count, + "Track read cancelled" + ); + return Ok(StreamEndReason::Reconnect); + }, Err(e) => { - tracing::error!("Error reading from track: {}", e); + tracing::error!(error = %e, session_packet_count, "Error reading from track"); if session_packet_count > 0 { tracing::warn!( "Track ended unexpectedly after {} packets - will retry",