This commit is contained in:
Tony Garnock-Jones 2021-03-04 11:38:20 +01:00
parent e14082795c
commit b72fb6c309
1 changed files with 1 additions and 4 deletions

View File

@ -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(); }
});