diff --git a/src/sandbox.ts b/src/sandbox.ts index 756a4b0..6825430 100644 --- a/src/sandbox.ts +++ b/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(); } });