Skip to content

Commit

Permalink
Do not log locking CSS fragments cache for read was interrupted (#1294)
Browse files Browse the repository at this point in the history
  • Loading branch information
RedeemerSK authored and iloveeclipse committed Mar 31, 2024
1 parent 10d2f66 commit c25d5db
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -562,8 +562,8 @@ private static void cssFragmentsCacheResetListener(PropertyChangeEvent event) {
CSS_FRAGMENTS_CACHE_LOCK.unlock();
}
}
} catch (InterruptedException e1) {
JavaPlugin.logErrorMessage("Interrupted while waiting for CSS fragments cache lock, cache reset unsuccessful"); //$NON-NLS-1$
} catch (InterruptedException e) {
JavaPlugin.log(new RuntimeException("Interrupted while waiting for CSS fragments cache lock, cache reset unsuccessful", e)); //$NON-NLS-1$
}
}
}
Expand Down Expand Up @@ -866,7 +866,8 @@ public static String modifyCssStyleSheet(String css, StringBuilder buffer) {
try {
locked= CSS_FRAGMENTS_CACHE_LOCK.tryLock(100, TimeUnit.MILLISECONDS);
} catch (InterruptedException e) {
JavaPlugin.logErrorMessage("Interrupted while waiting for CSS fragments cache lock, proceeding without using cache"); //$NON-NLS-1$
Thread.currentThread().interrupt();
return css;
}
try {
if (locked) {
Expand Down

0 comments on commit c25d5db

Please sign in to comment.