Skip to content

Commit

Permalink
Merge pull request jbake-org#744 from pzygielo/queue
Browse files Browse the repository at this point in the history
Use blocking method rather than the throwing one
  • Loading branch information
jonbullock authored Mar 10, 2022
2 parents 6e2a495 + 6b200da commit ac58d7e
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ public void stop() {
}

private void onUpdated() {
changeQueue.add(Long.valueOf(System.currentTimeMillis()));
try {
changeQueue.put(Long.valueOf(System.currentTimeMillis()));
} catch (InterruptedException iex) {
Thread.currentThread().interrupt();
}
}

/**
Expand Down

0 comments on commit ac58d7e

Please sign in to comment.