forked from M-Labs/artiq
1
0
Fork 0

Revert "pc_rpc: use ProactorEventLoop on Windows (#627)"

This reverts commit 7d4297b9bb.
This commit is contained in:
Sebastien Bourdeauducq 2016-12-12 11:33:56 +08:00
parent 09fb4869f3
commit 3743633b04
1 changed files with 1 additions and 6 deletions

View File

@ -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
@ -593,10 +592,6 @@ 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.ProactorEventLoop()
asyncio.set_event_loop(loop)
else:
loop = asyncio.get_event_loop() loop = asyncio.get_event_loop()
try: try:
server = Server(targets, description, True) server = Server(targets, description, True)