Skip to content
Permalink
Browse files

dont wait in timer job

  • Loading branch information...
bobjacobsen committed Oct 21, 2018
1 parent 9dc68de commit ab872de357501d3dbcf234e171a883d5ae5580a5
Showing with 3 additions and 8 deletions.
  1. +3 −8 java/src/jmri/implementation/AbstractMultiMeter.java
@@ -65,14 +65,9 @@ public void disable() {

@Override
public void run() {
try {
if (is_enabled) {
log.debug("Timer Pop");
requestUpdateFromLayout();
}
Thread.sleep(sleepInterval);
} catch (InterruptedException e) {
log.error("Error running timer update task! {}", e.getMessage());
if (is_enabled) {
log.debug("Timer Pop");
requestUpdateFromLayout();
}
}
}

0 comments on commit ab872de

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