We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c048f1b commit ee91dffCopy full SHA for ee91dff
lib/http-tracker.js
@@ -85,13 +85,19 @@ HTTPTracker.prototype.setInterval = function (intervalMs) {
85
}
86
87
88
+HTTPTracker.prototype.destroy = function () {
89
+ var self = this
90
+ self.destroyed = true
91
+}
92
+
93
HTTPTracker.prototype._request = function (requestUrl, opts, cb) {
94
var self = this
95
96
var u = requestUrl + (requestUrl.indexOf('?') === -1 ? '?' : '&') +
97
common.querystringStringify(opts)
98
99
get.concat(u, function (err, data, res) {
100
+ if (self.destroyed) return
101
if (err) return self.client.emit('warning', err)
102
if (res.statusCode !== 200) {
103
return self.client.emit('warning', new Error('Non-200 response code ' +
0 commit comments