Co-authored-by: orca-bug-scan-bot <orca-bug-scan-bot@stably.ai>
This commit is contained in:
parent
66bbe1c443
commit
05286ce00b
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue