completeOnTimeout instead of just timeout

This commit is contained in:
Draycia committed 2021-12-04 19:57:40 -08:00
1 parent ffb059ecb8
commit 8045b8da70
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