fix: silence false error log when streaming is cancelled during seek

This commit is contained in:
daniel-c-harvey
2026-06-10 09:01:59 -04:00
parent 1071ba7374
commit 0fd1977353
@@ -327,6 +327,11 @@ public class StreamingAudioPlayerService : AudioPlayerService, IStreamingPlayerS
LoadProgress = 1.0; LoadProgress = 1.0;
await NotifyStateChanged(); await NotifyStateChanged();
} }
catch (OperationCanceledException)
{
// Cancellation is expected during track switch or seek — propagate cleanly.
throw;
}
catch (Exception ex) catch (Exception ex)
{ {
StreamingErrorHandler.LogError(_logger, ex, "StreamAudioWithEarlyPlayback"); StreamingErrorHandler.LogError(_logger, ex, "StreamAudioWithEarlyPlayback");