client: interval.unref()

This commit is contained in:
Feross Aboukhadijeh 2015-08-24 00:11:48 +02:00
parent d29367a4a0
commit abbb076484

View File

@ -25,5 +25,6 @@ Tracker.prototype.setInterval = function (intervalMs) {
if (intervalMs) { if (intervalMs) {
var update = self.announce.bind(self, self.client._defaultAnnounceOpts()) var update = self.announce.bind(self, self.client._defaultAnnounceOpts())
self.interval = setInterval(update, intervalMs) self.interval = setInterval(update, intervalMs)
if (self.interval.unref) self.interval.unref()
} }
} }