fixed ping timer bug

This commit is contained in:
Steffen 2020-05-25 19:32:23 +02:00
parent 76a4b84000
commit 9f1fb223da
No known key found for this signature in database
GPG Key ID: 764D74E98267DFC6
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ class LiveSession {
this._players[playerId] = now;
// remove players that haven't sent a ping in twice the timespan
for (let player in this._players) {
if (now - this._players[player] > this._pingTimer * 2) {
if (now - this._players[player] > this._pingInterval * 2) {
delete this._players[player];
}
}