Update api.js

This commit is contained in:
Larry Ludlow 2017-09-10 09:02:52 -04:00 committed by GitHub
parent 677b367004
commit cdce1a36a0
1 changed files with 1 additions and 1 deletions

View File

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