Skip to content

Commit

Permalink
Fix BlockingGameListener to not throw exception if lock is already open
Browse files Browse the repository at this point in the history
  • Loading branch information
Zomis committed Jun 27, 2022
1 parent be69aab commit ca2015a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class BlockingGameListener: GameListener {
game = step.game as Game<Any>
}
if (step is FlowStep.ProceedStep) {
lock.unlock()
if (lock.isLocked) lock.unlock()
}
}

Expand Down

0 comments on commit ca2015a

Please sign in to comment.