mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-08 12:18:54 -05:00
Use ProactorEventLoop on Windows (#2062)
* Use ProactorEventLoop on Windows Signed-off-by: Toby Harradine <tobyharradine@gmail.com> * Set the actual loop instead of the policy Signed-off-by: Toby Harradine <tobyharradine@gmail.com>
This commit is contained in:
parent
e83beeef34
commit
775f4ce69a
@ -28,6 +28,9 @@ if sys.implementation.name == "cpython":
|
|||||||
else:
|
else:
|
||||||
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
|
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
|
||||||
|
|
||||||
|
if sys.platform == "win32":
|
||||||
|
asyncio.set_event_loop(asyncio.ProactorEventLoop())
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Red - Discord Bot v3
|
# Red - Discord Bot v3
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user