diff --git a/src/main/java/org/myrobotlab/service/NeoPixel.java b/src/main/java/org/myrobotlab/service/NeoPixel.java index 3c36b5bc15..f13918256d 100644 --- a/src/main/java/org/myrobotlab/service/NeoPixel.java +++ b/src/main/java/org/myrobotlab/service/NeoPixel.java @@ -177,9 +177,13 @@ public void run() { // FIXME - this should just wait/notify - not start a thread public synchronized void start() { - running = false; - thread = new Thread(this, String.format("%s-animation-runner", getName())); - thread.start(); + if (thread == null) { + running = true; + thread = new Thread(this, String.format("%s-animation-runner", getName())); + thread.start(); + } else { + log.info("animation runner already running"); + } } public synchronized void stop() {