u
This commit is contained in:
@@ -144,6 +144,12 @@ function spawnWorker(vfsRoot, googleAuthId) {
|
|||||||
return;
|
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('message', onBooted);
|
||||||
entry.worker.on('error', onError);
|
entry.worker.on('error', onError);
|
||||||
entry.worker.on('exit', onExit);
|
entry.worker.on('exit', onExit);
|
||||||
|
|||||||
Reference in New Issue
Block a user