Skip to content

Commit 124c90b

Browse files
committed
Make sure event loop is terminated when Julia exists
1 parent 4ad469a commit 124c90b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/init.jl

Lines changed: 3 additions & 0 deletions
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)