From a17ae316c7a3044645aef0957797af475c9aa2f9 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Thu, 8 Sep 2016 17:21:38 +0200 Subject: [PATCH] Fix asyncio reactor on Windows Fix #672 --- gns3server/main.py | 2 +- gns3server/web/web_server.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/gns3server/main.py b/gns3server/main.py index 5a8f70cf..07b18201 100644 --- a/gns3server/main.py +++ b/gns3server/main.py @@ -36,7 +36,7 @@ if sys.platform.startswith("win"): import asyncio # use the Proactor event loop on Windows loop = asyncio.ProactorEventLoop() - + asyncio.set_event_loop(loop) def daemonize(): diff --git a/gns3server/web/web_server.py b/gns3server/web/web_server.py index ebd28627..9bddb5c6 100644 --- a/gns3server/web/web_server.py +++ b/gns3server/web/web_server.py @@ -267,7 +267,6 @@ class WebServer: def wakeup(): loop.call_later(0.5, wakeup) loop.call_later(0.5, wakeup) - asyncio.set_event_loop(loop) server_config = Config.instance().get_section_config("Server")