diff --git a/artiq/protocols/pc_rpc.py b/artiq/protocols/pc_rpc.py index 512237d60..d4484dfc2 100644 --- a/artiq/protocols/pc_rpc.py +++ b/artiq/protocols/pc_rpc.py @@ -538,6 +538,9 @@ class Server(_AsyncioServer): except KeyError: return + if callable(target): + target = target() + while True: line = await reader.readline() if not line: