Skip to content

Commit

Permalink
issue #865 resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Kurilov committed Nov 23, 2016
1 parent add8081 commit c0501d6
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,10 @@ public final void run() {
while(!currThread.isInterrupted()) {
postProcessItems();
LockSupport.parkNanos(1_000);
if(isDone()) {
isPostProcessDone = true;
}
LockSupport.parkNanos(1_000);
}
} catch(final InterruptedException e) {
LogUtil.exception(LOG, Level.ERROR, e, "Interrupted");
Expand Down Expand Up @@ -211,8 +215,8 @@ protected void postProcessItems()
} else {
postProcessUniqueItemsFinally(items);
}
} else if(isDone()) {
isPostProcessDone = true;
} else {
LockSupport.parkNanos(1_000);
}
} catch(final IOException e) {
LogUtil.exception(
Expand Down

0 comments on commit c0501d6

Please sign in to comment.