Skip to content

Commit

Permalink
Avoid flashing lamp during a game
Browse files Browse the repository at this point in the history
  • Loading branch information
BinaryBrain committed Aug 1, 2021
1 parent 6258e8d commit ed954d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/lamp/index.ts
Expand Up @@ -24,7 +24,7 @@ let isLampRunning = false;
let currentColor: Color = HtmlColors.black;

function startLamp() {
if (!isLampRunning) {
if (!isLampRunning && state === State.IDLE) {
isLampRunning = true;
tick();
}
Expand Down

0 comments on commit ed954d0

Please sign in to comment.