From abbb0764840c976ce11f09e5b0c5b141394f22e9 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Mon, 24 Aug 2015 00:11:48 +0200 Subject: [PATCH] client: interval.unref() --- lib/client/tracker.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/client/tracker.js b/lib/client/tracker.js index 8d53f1e..889d072 100644 --- a/lib/client/tracker.js +++ b/lib/client/tracker.js @@ -25,5 +25,6 @@ Tracker.prototype.setInterval = function (intervalMs) { if (intervalMs) { var update = self.announce.bind(self, self.client._defaultAnnounceOpts()) self.interval = setInterval(update, intervalMs) + if (self.interval.unref) self.interval.unref() } }