Skip to content

Commit 3321b93

Browse files
committed
close browser displ
1 parent 1ce980f commit 3321b93

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

NetworkDynamicsInspector/src/serving.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,13 @@ function serve_app(::BrowserDisp, app)
8585
nothing
8686
end
8787
function close_display(::BrowserDisp; kwargs...)
88+
if BROWSER_STATE[:handler] isa Bonito.HTTPServer.BrowserDisplay
89+
close(BROWSER_STATE[:handler])
90+
end
8891
BROWSER_STATE[:handler] = nothing
8992
end
9093

9194

92-
9395
function close_session(session)
9496
if !isnothing(session) && Base.isopen(session)
9597
@info "Close existing session"

0 commit comments

Comments
 (0)