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:
parent
0999f2dd86
commit
10ee3f19a8
@ -113,6 +113,7 @@ def main():
|
|||||||
rpc_clients[target] = client
|
rpc_clients[target] = client
|
||||||
|
|
||||||
config = Client(args.server, args.port_control, "master_config")
|
config = Client(args.server, args.port_control, "master_config")
|
||||||
|
atexit.register(config.close_rpc)
|
||||||
server_name = config.get_name()
|
server_name = config.get_name()
|
||||||
if server_name is None:
|
if server_name is None:
|
||||||
server_name = args.server
|
server_name = args.server
|
||||||
|
Loading…
Reference in New Issue
Block a user