Skip to content

Commit faf6094

Browse files
authored
Make sure event loop is terminated when Julia exists (#46)
1 parent 4ad469a commit faf6094

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/init.jl

+3
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,9 @@ function __init__()
178178
end
179179

180180
init_colormaps()
181+
182+
# Ensure that the event loop is stopped when the Julia process exits
183+
atexit(pygui_stop_all)
181184
end
182185

183186
function pygui(b::Bool)

0 commit comments

Comments
 (0)