Skip to content

Commit

Permalink
fix(xsnap): xsnap process drops context after exit
Browse files Browse the repository at this point in the history
  • Loading branch information
mhofman committed Jul 1, 2022
1 parent a446dea commit 499cda0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/xsnap/src/xsnap.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export function xsnap(options) {
stdio: ['ignore', stdout, stderr, 'pipe', 'pipe'],
});

xsnapProcess.on('exit', (code, signal) => {
xsnapProcess.once('exit', (code, signal) => {
if (code === 0) {
vatExit.resolve();
} else if (signal !== null) {
Expand Down

0 comments on commit 499cda0

Please sign in to comment.