mirror of https://github.com/bra1n/townsquare.git
another fix for host session spam
This commit is contained in:
parent
284f9054ba
commit
6d8409d0f0
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue