thread pool executor?
@@ -92,7 +92,7 @@ class Minecraft(commands.Cog):
elif _ver == "be":
# Vanilla MCPE / Bedrock Edition (USES RAKNET)
vanilla_pe_ping_partial = partial(self.vanilla_pe_ping, ip, port if port is not None else 19132)
- with concurrent.futures.ProcessPoolExecutor() as pool:
+ with concurrent.futures.ThreadPoolExecutor() as pool:
pe_online, pe_p_count = await self.bot.loop.run_in_executor(pool, vanilla_pe_ping_partial)
if pe_online:
return {"online": True, "player_count": pe_p_count, "players": None, "ping": None, "version": "Vanilla Bedrock Edition"}
