mirror of https://github.com/m-labs/artiq.git
gui: proper shutdown of RPC client
This commit is contained in:
parent
1354ccbbc1
commit
fa441eebda
|
@ -37,6 +37,7 @@ def main():
|
|||
schedule_ctl = AsyncioClient()
|
||||
loop.run_until_complete(schedule_ctl.connect_rpc(
|
||||
args.server, args.port_control, "master_schedule"))
|
||||
atexit.register(lambda: schedule_ctl.close_rpc())
|
||||
|
||||
scheduler_win = SchedulerWindow(schedule_ctl)
|
||||
scheduler_win.connect("delete-event", Gtk.main_quit)
|
||||
|
|
Loading…
Reference in New Issue