Skip to content
Permalink
Browse files

Fix Spotbug warning

  • Loading branch information...
danielboudreau danielboudreau
danielboudreau authored and danielboudreau committed Oct 28, 2018
1 parent 4dd9111 commit 7d4837b53a1400347a210bb7494a44050eee2ab1
Showing with 2 additions and 7 deletions.
  1. +2 −7 java/src/jmri/jmrit/operations/trains/excel/TrainCustomCommon.java
@@ -162,8 +162,7 @@ public boolean checkProcessReady() {
if (alive) {
log.debug("Wait time: {} seconds process ready", waitTimeSeconds);
long loopCount = waitTimeSeconds; // number of seconds to wait
while (loopCount > 0 && alive) {
loopCount--;
while (loopCount-- > 0 && alive) {
synchronized (this) {
try {
wait(1000); // 1 sec
@@ -204,8 +203,7 @@ public boolean waitForProcessToComplete() throws InterruptedException {
// printing can take a long time, wait to complete
if (status && file.exists()) {
long loopCount = waitTimeSeconds; // number of seconds to wait
while (loopCount > 0) {
loopCount--;
while (loopCount-- > 0 && file.exists()) {
synchronized (this) {
try {
wait(1000); // 1 sec
@@ -214,9 +212,6 @@ public boolean waitForProcessToComplete() throws InterruptedException {
log.error("Thread unexpectedly interrupted", e);
}
}
if (!file.exists()) {
break; // done printing
}
}
}
if (file.exists()) {

0 comments on commit 7d4837b

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