From 775f4ce69a07518be73d41e9d07cb4399910dd55 Mon Sep 17 00:00:00 2001 From: Toby Harradine Date: Thu, 6 Sep 2018 00:40:15 +1000 Subject: [PATCH] Use ProactorEventLoop on Windows (#2062) * Use ProactorEventLoop on Windows Signed-off-by: Toby Harradine * Set the actual loop instead of the policy Signed-off-by: Toby Harradine --- redbot/__main__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/redbot/__main__.py b/redbot/__main__.py index 14c40958a..cbd9e4daf 100644 --- a/redbot/__main__.py +++ b/redbot/__main__.py @@ -28,6 +28,9 @@ if sys.implementation.name == "cpython": else: asyncio.set_event_loop_policy(uvloop.EventLoopPolicy()) +if sys.platform == "win32": + asyncio.set_event_loop(asyncio.ProactorEventLoop()) + # # Red - Discord Bot v3