This could give some extra time to the current in-progress claim/vote,
but that's fine, (and better than leaving the timer un-started which
could result in a hung game if a player has been disconnected).
restore(data) {
super.restore(data);
this.state.done_players = new Set(this.state.done_players);
+
+ /* Restart timers that were active at save time. */
+ if (this.state.vote_pending) {
+ this._vote_timer = setTimeout(() => this._resolve_vote(), VOTE_TIMEOUT_MS);
+ } else if (this.state.claim_queue.length > 0) {
+ this._activate_claimer();
+ }
}
}