hyperswarm
Advanced tools
Comparing version 4.3.6 to 4.3.7
@@ -155,4 +155,9 @@ const safetyCatch = require('safety-catch') | ||
if (this.destroyed) return | ||
if (this._sessions.length === 0) await this.swarm.leave(this.topic) | ||
else if (this._serverSessions === 0 && this._needsUnannounce) await this.refresh() | ||
try { | ||
if (this._sessions.length === 0) await this.swarm.leave(this.topic) | ||
else if (this._serverSessions === 0 && this._needsUnannounce) await this.refresh() | ||
} catch (err) { // ignore network failures here, as we are tearing down | ||
safetyCatch(err) | ||
} | ||
} | ||
@@ -159,0 +164,0 @@ |
{ | ||
"name": "hyperswarm", | ||
"version": "4.3.6", | ||
"version": "4.3.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
33939
744