We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78fc5a8 commit fc92a66Copy full SHA for fc92a66
artiq/frontend/artiq_master.py
@@ -3,6 +3,7 @@
3
import asyncio
4
import argparse
5
import atexit
6
+import os
7
8
from artiq.protocols.pc_rpc import Server
9
from artiq.protocols.sync_struct import Publisher
@@ -40,7 +41,11 @@ def main():
40
41
repository = Repository()
42
explist = FlatFileDB("explist.pyon")
43
- loop = asyncio.get_event_loop()
44
+ if os.name == 'nt':
45
+ loop = asyncio.ProactorEventLoop()
46
+ asyncio.set_event_loop(loop)
47
+ else:
48
+ loop = asyncio.get_event_loop()
49
atexit.register(lambda: loop.close())
50
51
def run_cb(rid, run_params):
0 commit comments