Browse Source

Tidy up

main
Tony Garnock-Jones 8 months ago
parent
commit
b72fb6c309
  1. 5
      src/sandbox.ts

5
src/sandbox.ts

@ -16,10 +16,7 @@ const socket = net.createConnection({ port: 5999, host: 'localhost' }, () => {
socket.on('close', () => t.freshen(t => t.quit()));
socket.on('end', () => t.freshen(t => t.quit()));
socket.on('data', data => r.accept(data));
t.actor.atExit(() => {
console.log('closing socket');
socket.destroy();
});
t.actor.atExit(() => socket.destroy());
shutdownRef = t.ref({
retract(t) { t.quit(); }
});

Loading…
Cancel
Save