hyperswarm
Advanced tools
Comparing version 4.3.1 to 4.3.2
@@ -52,3 +52,3 @@ const safetyCatch = require('safety-catch') | ||
if (overdue) this._refreshLater(true) | ||
else this._refreshMaybe().catch(this._onerror) | ||
else this.refresh().catch(this._onerror) | ||
}, delay) | ||
@@ -106,3 +106,3 @@ } | ||
async _refreshMaybe () { | ||
async refresh () { | ||
if (this.destroyed) throw new Error('PeerDiscovery is destroyed') | ||
@@ -148,3 +148,3 @@ | ||
if (this._sessions.length === 0) await this.destroy() | ||
else if (this._serverSessions === 0 && this._needsUnannounce) await this._refreshMaybe() | ||
else if (this._serverSessions === 0 && this._needsUnannounce) await this.refresh() | ||
} | ||
@@ -210,3 +210,3 @@ | ||
return this.discovery._refreshMaybe() | ||
return this.discovery.refresh() | ||
} | ||
@@ -213,0 +213,0 @@ |
{ | ||
"name": "hyperswarm", | ||
"version": "4.3.1", | ||
"version": "4.3.2", | ||
"description": "A distributed networking stack for connecting peers", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
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
63017