Skip to content

Commit 6cc9adb

Browse files
committed
Add shutdown guard
1 parent 1d22fd1 commit 6cc9adb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

examples/autopilot.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,9 @@ function print_stats()
461461
end
462462

463463
function do_menu(c)
464+
if isnothing(app.viewer) || !isopen(app.viewer.fig.scene)
465+
return nothing
466+
end
464467
if c == "save logfile"
465468
save_log_as()
466469
elseif c == "load logfile"

0 commit comments

Comments
 (0)