mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-06 20:15:17 +02:00
recurse fix
This commit is contained in:
parent
2f8832989a
commit
9f3d49ab93
1 changed files with 2 additions and 2 deletions
|
|
@ -325,8 +325,6 @@ export default function PodcastsPageClient({ searchSpaceId }: PodcastsPageClient
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
clearTimeout(timeoutId);
|
|
||||||
|
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw new Error(`Failed to fetch audio stream: ${response.statusText}`);
|
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 new Error('Request timed out. Please try again.');
|
||||||
}
|
}
|
||||||
throw error;
|
throw error;
|
||||||
|
} finally {
|
||||||
|
clearTimeout(timeoutId);
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error fetching or playing podcast:', error);
|
console.error('Error fetching or playing podcast:', error);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue