bittorrent-dht
Advanced tools
Comparing version 3.2.3 to 3.2.4
@@ -149,3 +149,3 @@ module.exports = DHT | ||
self._rotateInterval = setInterval(self._rotateSecrets.bind(self), ROTATE_INTERVAL) | ||
self._rotateInterval.unref && self._rotateInterval.unref() | ||
if (self._rotateInterval.unref) self._rotateInterval.unref() | ||
@@ -488,3 +488,3 @@ process.nextTick(function () { | ||
function startBootstrapTimeout () { | ||
setTimeout(function () { | ||
var bootstrapTimeout = setTimeout(function () { | ||
if (self.destroyed) return | ||
@@ -496,3 +496,4 @@ // If 0 nodes are in the table after a timeout, retry with bootstrap nodes | ||
} | ||
}, BOOTSTRAP_TIMEOUT).unref() | ||
}, BOOTSTRAP_TIMEOUT) | ||
if (bootstrapTimeout.unref) bootstrapTimeout.unref() | ||
} | ||
@@ -499,0 +500,0 @@ |
{ | ||
"name": "bittorrent-dht", | ||
"description": "Simple, robust, BitTorrent DHT implementation", | ||
"version": "3.2.3", | ||
"version": "3.2.4", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Feross Aboukhadijeh", |
63702
1696