diff --git a/lib/datacollector.js b/lib/datacollector.js index 2fed304..aace7aa 100644 --- a/lib/datacollector.js +++ b/lib/datacollector.js @@ -7,7 +7,7 @@ module.exports = class WebSocketMessageCollector { this.startDate = new Date(); this.dispatchFunction = dispatchFunction; exitHook(cb => { - this.dispatchFunction().then(cb); + this.package().then(cb); }); }