Merge branch 'master' into livestats

This commit is contained in:
sennevb 2017-10-24 06:12:07 +02:00 committed by GitHub
commit af74e65f05
1 changed files with 2 additions and 2 deletions

View File

@ -111,8 +111,8 @@ module.exports = function(logger, portalConfig, poolConfigs){
res.write('\n');
var uid = Math.random().toString();
_this.liveStatConnections[uid] = res;
res.flush();
res.on("close", function() {
res.flush();
req.on("close", function() {
delete _this.liveStatConnections[uid];
});
return;