forked from M-Labs/artiq
protocols/pc_rpc: support dynamic target creation
This commit is contained in:
parent
120db8ba08
commit
168113ce55
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue