use mcping-js, prevent ping loops while the last is still running

This commit is contained in:
Nick Krecklow
2020-05-09 23:28:37 -05:00
parent f9ce280a2b
commit 10bd23cfa4
4 changed files with 25 additions and 16 deletions

View File

@ -223,11 +223,7 @@ class ServerRegistration {
// Generate an updated hash
// This is used by #getFaviconUrl
if (!this._faviconHasher) {
this._faviconHasher = crypto.createHash('md5')
}
this.faviconHash = this._faviconHasher.update(favicon).digest('hex').toString()
this.faviconHash = crypto.createHash('md5').update(favicon).digest('hex').toString()
return true
}