diff --git a/web/app/models/channel/channel.js b/web/app/models/channel/channel.js index 62e0b03..85e5397 100644 --- a/web/app/models/channel/channel.js +++ b/web/app/models/channel/channel.js @@ -57,9 +57,11 @@ MetricsChannel.prototype.add = function(mkey) { // mkey - String // MetricsChannel.prototype.remove = function(mkey) { - this.touch() - this.requests[mkey].destroy() - delete this.requests[mkey] + if (this.requests[mkey]) { + this.touch() + this.requests[mkey].destroy() + delete this.requests[mkey] + } } MetricsChannel.prototype.onPoint = function(point) {