mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-04 22:15:37 +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);
|
this.userCache.put(uuid, player);
|
||||||
|
|
||||||
return new ComponentPlayerResult<>(player, empty());
|
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
|
@Override
|
||||||
|
|||||||
Reference in new issue
Block a user