There was an error while loading. Please reload this page.
1 parent fb53ce7 commit cc7a0aeCopy full SHA for cc7a0ae
packages/node-modules-inspector/src/app/webcontainer/container.ts
@@ -124,9 +124,12 @@ export async function install(
124
heartbeat = Date.now()
125
serverError = undefined
126
127
- // Max 5000ms between heartbeat and now
+ // Max 10000 ms between heartbeat and now
128
// eslint-disable-next-line no-unmodified-loop-condition
129
- while (!result && !serverError && Date.now() - heartbeat < 5000) {
+ while (!result && !serverError) {
130
+ if (Date.now() - heartbeat > 10000) {
131
+ throw new Error('Server heartbeat timeout')
132
+ }
133
await new Promise(r => setTimeout(r, 100))
134
}
135
if (!result) {
0 commit comments