mirror of
https://github.com/AsgardEternal/squad-js-map-vote.git
synced 2025-01-24 02:33:52 -06:00
chore: timeout clearing endVoting
This commit is contained in:
parent
42bdb8484b
commit
de3d3aa497
@ -743,11 +743,9 @@ export default class MapVote extends DiscordBasePlugin {
|
|||||||
|
|
||||||
endVoting() {
|
endVoting() {
|
||||||
this.votingEnabled = false;
|
this.votingEnabled = false;
|
||||||
clearInterval(this.broadcastIntervalTask);
|
this.broadcastIntervalTask = clearInterval(this.broadcastIntervalTask);
|
||||||
clearTimeout(this.newVoteTimeout);
|
this.newVoteTimeout = clearTimeout(this.newVoteTimeout);
|
||||||
clearTimeout(this.endVotingTimeout);
|
this.endVotingTimeout = clearTimeout(this.endVotingTimeout);
|
||||||
this.newVoteTimeout = null;
|
|
||||||
this.broadcastIntervalTask = null;
|
|
||||||
}
|
}
|
||||||
objArrToValArr(arr, ...key) {
|
objArrToValArr(arr, ...key) {
|
||||||
let vet = [];
|
let vet = [];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user