Merge branch 'ttpwa-004' into 'development'

Forcing twitter.js to exit when the processor 'stops'.

See merge request martind2000/traintimesPWA!14
This commit is contained in:
Martin Donnelly 2020-08-21 08:03:15 +00:00
commit 918a94090a

View File

@ -136,6 +136,10 @@ const accounts = [
})
.on("ping", () => console.log('>> ping'))
.on("error", error => console.error(error))
.on("end", response => console.log('Stopped!'));
.on("end", response => {
console.error('Stopped!');
console.log(response);
process.exit(1);
});
})();