From ec3db792eda808a50a37a69657f6f1c5b552c733 Mon Sep 17 00:00:00 2001 From: Gabriele C Date: Tue, 9 Aug 2016 13:48:18 +0200 Subject: [PATCH] Try to fix cache refresh issue on shutdown --- src/main/java/fr/xephi/authme/datasource/CacheDataSource.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/fr/xephi/authme/datasource/CacheDataSource.java b/src/main/java/fr/xephi/authme/datasource/CacheDataSource.java index 201cff60b..a79cb5805 100644 --- a/src/main/java/fr/xephi/authme/datasource/CacheDataSource.java +++ b/src/main/java/fr/xephi/authme/datasource/CacheDataSource.java @@ -155,14 +155,14 @@ public class CacheDataSource implements DataSource { @Override public void close() { - source.close(); - cachedAuths.invalidateAll(); executorService.shutdown(); try { executorService.awaitTermination(5, TimeUnit.SECONDS); } catch (InterruptedException e) { ConsoleLogger.logException("Could not close executor service:", e); } + cachedAuths.invalidateAll(); + source.close(); } @Override