This commit is contained in:
seb
2026-10-21 01:54:10 +02:00
parent b7058df5d2
commit 63f4c3a0e4

View File

@@ -144,6 +144,12 @@ function spawnWorker(vfsRoot, googleAuthId) {
return;
}
// Permanent listener: without it an error emitted while the thread is idle (no job
// listener attached) is unhandled and takes down the whole process.
entry.worker.on('error', (err) => {
console.error('[sandbox] worker error:', err?.message || err);
dropWorker(entry);
});
entry.worker.on('message', onBooted);
entry.worker.on('error', onError);
entry.worker.on('exit', onExit);