Skip to content

Commit

Permalink
gui: proper shutdown of RPC client
Browse files Browse the repository at this point in the history
sbourdeauducq committed Jan 6, 2015
1 parent 1354ccb commit fa441ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/artiq_gui.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit fa441ee

Please sign in to comment.