2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-26 03:38:25 +08:00

protocols/pc_rpc: support dynamic target creation

This commit is contained in:
Sebastien Bourdeauducq 2016-03-23 15:13:56 +08:00
parent 120db8ba08
commit 168113ce55

View File

@ -538,6 +538,9 @@ class Server(_AsyncioServer):
except KeyError: except KeyError:
return return
if callable(target):
target = target()
while True: while True:
line = await reader.readline() line = await reader.readline()
if not line: if not line: