Skip to content

Commit

Permalink
perf: remove useless timer stopping
Browse files Browse the repository at this point in the history
  • Loading branch information
mirko-felice committed Mar 1, 2023
1 parent 341cc21 commit 7ba49c6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion chess/src/main/scala/io/github/chess/model/ChessGame.scala
Expand Up @@ -229,7 +229,6 @@ class ChessGame(private val vertx: Vertx) extends ChessPort:
this.publishTimePassedEvent(timer)
if timer.ended then
timer.stop()
if timer != this.timerPerMove then timer.opposite.stop()
this.publish(
GameOverEvent(
cause = GameOverCause.Timeout,
Expand Down

0 comments on commit 7ba49c6

Please sign in to comment.