Skip to content

Commit

Permalink
python thread needs to be daemon
Browse files Browse the repository at this point in the history
  • Loading branch information
schlichtanders committed Nov 22, 2023
1 parent 9361b18 commit 7c54a70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "JolinPluto"
uuid = "5b0b4ef8-f4e6-4363-b674-3f031f7b9530"
authors = ["Stephan Sahm <[email protected]> and contributors"]
version = "0.1.57"
version = "0.1.58"

[deps]
AbstractPlutoDingetjes = "6e696c72-6542-2067-7265-42206c756150"
Expand Down
2 changes: 1 addition & 1 deletion ext/PythonExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function JolinPluto.start_python_thread(func)
if !JolinPluto.is_running_in_pluto_process()
# just start a plain thread without cleanup
stop_event = threading.Event()
threading.Thread(target=func, args=(stop_event,)).start()
threading.Thread(target=func, daemon=true, args=(stop_event,)).start()
return stop_event
end

Expand Down

0 comments on commit 7c54a70

Please sign in to comment.