mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
completeOnTimeout instead of just timeout
This commit is contained in:
1 file changed
+1
-1
@@ -117,7 +117,7 @@ public class JSONUserManager implements UserManager<CarbonPlayerCommon> {
|
||||
this.userCache.put(uuid, player);
|
||||
|
||||
return new ComponentPlayerResult<>(player, empty());
|
||||
}).orTimeout(30, TimeUnit.SECONDS);
|
||||
}).completeOnTimeout(new ComponentPlayerResult<>(null, text("Timed out loading data of UUID [" + uuid + " ]")), 30, TimeUnit.SECONDS);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user