From a2c074cc3355bd109f2a761cb350c44f7c45a933 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 1 Nov 2015 00:03:46 +0800 Subject: [PATCH] gui: fix RPC client teardown --- artiq/frontend/artiq_gui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artiq/frontend/artiq_gui.py b/artiq/frontend/artiq_gui.py index a94b44d1f..8967757d0 100755 --- a/artiq/frontend/artiq_gui.py +++ b/artiq/frontend/artiq_gui.py @@ -67,14 +67,14 @@ def main(): app = QtGui.QApplication([]) loop = QEventLoop(app) asyncio.set_event_loop(loop) - atexit.register(lambda: loop.close()) + atexit.register(loop.close) rpc_clients = dict() for target in "schedule", "repository", "dataset_db": client = AsyncioClient() loop.run_until_complete(client.connect_rpc( args.server, args.port_control, "master_" + target)) - atexit.register(lambda: client.close_rpc()) + atexit.register(client.close_rpc) rpc_clients[target] = client smgr = StateManager(args.db_file)