From 0fd1977353c6fcf65f02479b42aa767a9645ab49 Mon Sep 17 00:00:00 2001 From: daniel-c-harvey Date: Wed, 10 Jun 2026 09:01:59 -0400 Subject: [PATCH] fix: silence false error log when streaming is cancelled during seek --- .../Services/StreamingAudioPlayerService.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/DeepDrftPublic.Client/Services/StreamingAudioPlayerService.cs b/DeepDrftPublic.Client/Services/StreamingAudioPlayerService.cs index ed89af2..d77b8da 100644 --- a/DeepDrftPublic.Client/Services/StreamingAudioPlayerService.cs +++ b/DeepDrftPublic.Client/Services/StreamingAudioPlayerService.cs @@ -327,6 +327,11 @@ public class StreamingAudioPlayerService : AudioPlayerService, IStreamingPlayerS LoadProgress = 1.0; await NotifyStateChanged(); } + catch (OperationCanceledException) + { + // Cancellation is expected during track switch or seek — propagate cleanly. + throw; + } catch (Exception ex) { StreamingErrorHandler.LogError(_logger, ex, "StreamAudioWithEarlyPlayback");