Skip to content

Commit

Permalink
fix(swingset): don't perturb XS heap state when loading snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc authored and michaelfig committed Jul 1, 2021
1 parent a0493d7 commit 52171a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/SwingSet/src/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export function makeStartXSnap(bundles, { snapStore, env, spawn }) {
// console.log('startXSnap from', { snapshotHash });
return snapStore.load(snapshotHash, async snapshot => {
const xs = doXSnap({ snapshot, name, handleCommand, ...xsnapOpts });
await xs.evaluate('null'); // ensure that spawn is done
await xs.isReady();
return xs;
});
}
Expand Down

0 comments on commit 52171a1

Please sign in to comment.