Fix asyncio reactor on Windows

Fix #672
This commit is contained in:
Julien Duponchelle committed 2016-09-08 17:21:38 +02:00
1 parent 83b72d762c
commit a17ae316c7
2 files changed
+1 -2

No files matched your search

+1 -1
View File
@@ -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():
-1
View File
@@ -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")