From 9f3d49ab939ddd52abb9cd96ed581fada007eee1 Mon Sep 17 00:00:00 2001 From: "DESKTOP-RTLN3BA\\$punk" Date: Wed, 7 May 2025 23:18:49 -0700 Subject: [PATCH] recurse fix --- .../dashboard/[search_space_id]/podcasts/podcasts-client.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/surfsense_web/app/dashboard/[search_space_id]/podcasts/podcasts-client.tsx b/surfsense_web/app/dashboard/[search_space_id]/podcasts/podcasts-client.tsx index 16527fbee..5489d8672 100644 --- a/surfsense_web/app/dashboard/[search_space_id]/podcasts/podcasts-client.tsx +++ b/surfsense_web/app/dashboard/[search_space_id]/podcasts/podcasts-client.tsx @@ -325,8 +325,6 @@ export default function PodcastsPageClient({ searchSpaceId }: PodcastsPageClient } ); - clearTimeout(timeoutId); - if (!response.ok) { throw new Error(`Failed to fetch audio stream: ${response.statusText}`); } @@ -345,6 +343,8 @@ export default function PodcastsPageClient({ searchSpaceId }: PodcastsPageClient throw new Error('Request timed out. Please try again.'); } throw error; + } finally { + clearTimeout(timeoutId); } } catch (error) { console.error('Error fetching or playing podcast:', error);