mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 06:28:54 +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;
|
||||
}
|
||||
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 {
|
||||
this.cacheLock.unlock();
|
||||
|
||||
Reference in new issue
Block a user