From 9f1fb223dac661121175ed6951f5396a0cdb997f Mon Sep 17 00:00:00 2001 From: Steffen Date: Mon, 25 May 2020 19:32:23 +0200 Subject: [PATCH] fixed ping timer bug --- src/store/session.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/session.js b/src/store/session.js index 4362de1..29c00c0 100644 --- a/src/store/session.js +++ b/src/store/session.js @@ -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]; } }