2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 11:18:27 +08:00

dashboard: close config RPC Client cleanly at exit

This commit is contained in:
Chris Ballance 2017-11-25 11:36:20 +00:00 committed by Sébastien Bourdeauducq
parent 0999f2dd86
commit 10ee3f19a8

View File

@ -113,6 +113,7 @@ def main():
rpc_clients[target] = client
config = Client(args.server, args.port_control, "master_config")
atexit.register(config.close_rpc)
server_name = config.get_name()
if server_name is None:
server_name = args.server