hyperswarm
Advanced tools
Comparing version 4.7.6 to 4.7.7
@@ -191,3 +191,3 @@ const safetyCatch = require('safety-catch') | ||
const nodes = this._closestNodes | ||
let nodes = this._closestNodes | ||
@@ -204,3 +204,4 @@ if (this._currentRefresh) { | ||
if (this._closestNodes !== nodes) { | ||
if (!nodes) nodes = this._closestNodes | ||
else if (this._closestNodes !== nodes) { | ||
for (const newer of this._closestNodes) { | ||
@@ -215,3 +216,3 @@ for (const older of nodes) { | ||
if (this._needsUnannounce) { | ||
await this.swarm.dht.unannounce(this.topic, this.swarm.keyPair, { closestNodes: nodes, onlyClosestNodes: true }) | ||
if (nodes && nodes.length) await this.swarm.dht.unannounce(this.topic, this.swarm.keyPair, { closestNodes: nodes, onlyClosestNodes: true }) | ||
this._needsUnannounce = false | ||
@@ -218,0 +219,0 @@ } |
{ | ||
"name": "hyperswarm", | ||
"version": "4.7.6", | ||
"version": "4.7.7", | ||
"description": "A distributed networking stack for connecting peers", | ||
@@ -5,0 +5,0 @@ "files": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37795
852