From 3743633b04af85e0d3e5887f818e427e8d99e5d3 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 12 Dec 2016 11:33:56 +0800 Subject: [PATCH] Revert "pc_rpc: use ProactorEventLoop on Windows (#627)" This reverts commit 7d4297b9bb97b6ce9a7aa9735b2ebce74bf4e446. --- artiq/protocols/pc_rpc.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/artiq/protocols/pc_rpc.py b/artiq/protocols/pc_rpc.py index f2acd9bfc..bf3f1c12b 100644 --- a/artiq/protocols/pc_rpc.py +++ b/artiq/protocols/pc_rpc.py @@ -11,7 +11,6 @@ client passes a list as a parameter of an RPC method, and that method client's list. """ -import os import socket import asyncio import threading @@ -593,11 +592,7 @@ def simple_server_loop(targets, host, port, description=None): 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: server = Server(targets, description, True) loop.run_until_complete(server.start(host, port))