Skip to content
Permalink
Browse files

Update AbstractLight.java

  • Loading branch information...
icklesteve committed May 23, 2019
1 parent e02b7e2 commit 229fde07e5844a3e102f960c63e6625c74d42833
Showing with 2 additions and 2 deletions.
  1. +2 −2 java/src/jmri/implementation/AbstractLight.java
@@ -479,7 +479,7 @@ public void activateLight() {
lightControlList.stream().forEach((lc) -> {
lc.activateLightControl();
});
mActive = true; // set flag for active control listeners
mActive = true; // set flag for control listeners
}

/**
@@ -488,7 +488,7 @@ public void activateLight() {
@Override
public void deactivateLight() {
// skip if Light is not active
if (mActive) { // check flag for control listeners
if (mActive) { // check if flag set for control listeners
lightControlList.stream().forEach((lc) -> {
lc.deactivateLightControl();
});

0 comments on commit 229fde0

Please sign in to comment.
You can’t perform that action at this time.