Skip to content

Commit

Permalink
Stop emitting prestart all of the time
Browse files Browse the repository at this point in the history
  • Loading branch information
Techno11 committed Sep 16, 2024
1 parent 0a4bdfa commit 02e3ee1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion back-end/realtime/src/rooms/Match.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ export default class Match extends Room {
// These are in case of mid-match disconnect/reconnects
if (
this.state >= MatchState.PRESTART_COMPLETE &&
this.state !== MatchState.MATCH_COMPLETE &&
this.state !== MatchState.MATCH_COMPLETE && // we never actually get into this state (in the socket server, anyway)
this.state !== MatchState.RESULTS_COMMITTED && // so instead we'll stop prestarting people here instead
this.key &&
!this.timer.inProgress()
) {
Expand Down

0 comments on commit 02e3ee1

Please sign in to comment.