mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-25 19:28:26 +08:00
Revert "pc_rpc: use ProactorEventLoop on Windows (#627)"
This reverts commit 7d4297b9bb
.
This commit is contained in:
parent
072e7f6628
commit
b823e916f0
@ -11,7 +11,6 @@ client passes a list as a parameter of an RPC method, and that method
|
|||||||
client's list.
|
client's list.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
|
||||||
import socket
|
import socket
|
||||||
import asyncio
|
import asyncio
|
||||||
import threading
|
import threading
|
||||||
@ -581,11 +580,7 @@ def simple_server_loop(targets, host, port, description=None):
|
|||||||
|
|
||||||
See ``Server`` for a description of the parameters.
|
See ``Server`` for a description of the parameters.
|
||||||
"""
|
"""
|
||||||
if os.name == "nt":
|
loop = asyncio.get_event_loop()
|
||||||
loop = asyncio.ProactorEventLoop()
|
|
||||||
asyncio.set_event_loop(loop)
|
|
||||||
else:
|
|
||||||
loop = asyncio.get_event_loop()
|
|
||||||
try:
|
try:
|
||||||
server = Server(targets, description, True)
|
server = Server(targets, description, True)
|
||||||
loop.run_until_complete(server.start(host, port))
|
loop.run_until_complete(server.start(host, port))
|
||||||
|
Loading…
Reference in New Issue
Block a user