Skip to content

Commit

Permalink
Workaround: calling 'process.exit()' after execution of 'Subset C' (c…
Browse files Browse the repository at this point in the history
…losure last step).

- Refer to #61. For some reason, there are pending events in the Node
  Event Loop preventing the process to exit on its own.
  • Loading branch information
nunoguedelha committed Nov 3, 2021
1 parent 23c4272 commit b07deb5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion iCubTelemVizServer/terminationHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ TerminationHandler.prototype.run = function(signal) {
this.runSubsetB.bind(this)).then(
this.runSubsetC.bind(this));
Promise.all([subsetCpromise,subsetApromise.closeServers]).then(
function(values) { values.forEach((v) => console.log(v)); }
function(values) {
values.forEach((v) => console.log(v));
process.exit();
}
).catch(console.error);
}

Expand Down

0 comments on commit b07deb5

Please sign in to comment.