mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-04 14:38:49 +00:00
add exception handling to save in cleanup
This commit is contained in:
1 file changed
+4
-1
@@ -118,7 +118,10 @@ public abstract class CachingUserManager implements UserManagerInternal<CarbonPl
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
this.cache.remove(entry.getKey());
|
this.cache.remove(entry.getKey());
|
||||||
this.save(getNow);
|
this.save(getNow).exceptionally(thr -> {
|
||||||
|
this.logger.warn("Exception saving data for player {} with UUID {}", getNow.username(), getNow.uuid(), thr);
|
||||||
|
return null;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
this.cacheLock.unlock();
|
this.cacheLock.unlock();
|
||||||
|
|||||||
Reference in new issue
Block a user