From 33545b0688dc7d7ad9c9810ae93bd17175916226 Mon Sep 17 00:00:00 2001 From: Jay Sitter Date: Sat, 6 Dec 2025 14:17:50 -0500 Subject: [PATCH] chore: seekTo is async; await it, and add catch --- src/app/Schedule/ArchivedShowView.tsx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/app/Schedule/ArchivedShowView.tsx b/src/app/Schedule/ArchivedShowView.tsx index 62312d7..ad8240e 100644 --- a/src/app/Schedule/ArchivedShowView.tsx +++ b/src/app/Schedule/ArchivedShowView.tsx @@ -208,7 +208,12 @@ export default function ArchivedShowView() { const handleSkipBackward = async () => { const newPosition = Math.max(progress.position - SKIP_INTERVAL, 0); - await TrackPlayer.seekTo(newPosition); + + try { + await TrackPlayer.seekTo(newPosition); + } catch (e) { + debugError('Error skipping backward:', e); + } }; const handleSkipForward = async () => { @@ -216,7 +221,12 @@ export default function ArchivedShowView() { progress.position + SKIP_INTERVAL, progress.duration, ); - await TrackPlayer.seekTo(newPosition); + + try { + await TrackPlayer.seekTo(newPosition); + } catch (e) { + debugError('Error skipping forward:', e); + } }; return (