SDK-2951: Use WindowsProactorEventLoopPolicy on Windows

This commit is contained in:
Romuald Juchnowicz-Bierbasz
2019-07-23 17:08:48 +02:00
parent 49eb10ac8a
commit 53b3062719

View File

@@ -894,6 +894,9 @@ def create_and_run_plugin(plugin_class, argv):
await plugin.run()
try:
if sys.platform == "win32":
asyncio.set_event_loop_policy(asyncio.WindowsProactorEventLoopPolicy())
asyncio.run(coroutine())
except Exception:
logging.exception("Error while running plugin")