forked from j62/ctbrec
1
0
Fork 0

Invalidate cache entries, if model is public and resolution is 0

This commit is contained in:
0xboobface 2018-10-03 15:05:39 +02:00
parent e6ce54e1d8
commit e61cff48f2
1 changed files with 1 additions and 0 deletions

View File

@ -203,6 +203,7 @@ public class ThumbCell extends StackPane {
try { try {
if (model.isOnline() && resolution[1] == 0) { if (model.isOnline() && resolution[1] == 0) {
LOG.debug("Removing invalid resolution value for {}", model.getName()); LOG.debug("Removing invalid resolution value for {}", model.getName());
model.invalidateCacheEntries();
} }
} catch (IOException | ExecutionException | InterruptedException e) { } catch (IOException | ExecutionException | InterruptedException e) {
LOG.error("Coulnd't get resolution for model {}", model, e); LOG.error("Coulnd't get resolution for model {}", model, e);