fix: pr-bug-scan validated finding from #2316 (#2335)

Co-authored-by: orca-bug-scan-bot <orca-bug-scan-bot@stably.ai>
This commit is contained in:
buf0-bot[bot] 2026-05-19 12:47:54 -07:00 committed by GitHub
parent 66bbe1c443
commit 05286ce00b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -275,7 +275,11 @@ function LocalWorkspacePortsPanel({ isVisible }: { isVisible: boolean }): React.
}
async function run(): Promise<void> {
await refresh()
try {
await refresh()
} catch {
// Why: a transient RPC failure must not halt the poll loop.
}
if (!cancelled) {
timeout = setTimeout(() => void run(), LOCAL_PORT_SCAN_INTERVAL_MS)
}