Skip to content

Commit

Permalink
Added: drainPermits to ensure update cycle is not running twice
Browse files Browse the repository at this point in the history
  • Loading branch information
HeikoBoettger-KarlStorz committed Oct 20, 2016
1 parent 766806a commit ea61f91
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ public void finished(Result result) {
public void waitForStatusChange() {
try {
statusChanged.tryAcquire(15, TimeUnit.SECONDS);
statusChanged.drainPermits();
} catch (InterruptedException e) {
//ignore
}
Expand Down

0 comments on commit ea61f91

Please sign in to comment.