another fix for host session spam

This commit is contained in:
Steffen 2020-12-25 14:09:05 +01:00
parent 284f9054ba
commit 6d8409d0f0
1 changed files with 2 additions and 1 deletions

View File

@ -683,12 +683,13 @@ class LiveSession {
}
/**
* Update vote lock and the locked vote, if it differs.
* Update vote lock and the locked vote, if it differs. Player only
* @param lock
* @param vote
* @private
*/
_handleLock([lock, vote]) {
if (!this._isSpectator) return;
this._store.commit("session/lockVote", lock);
if (lock > 1) {
const { lockedVote, nomination } = this._store.state.session;