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:
commit
918a94090a
@ -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);
|
||||
});
|
||||
|
||||
})();
|
||||
|
Loading…
Reference in New Issue
Block a user