Skip to content

Commit f8d8530

Browse files
committed
fix for missing handler
1 parent 3321b93 commit f8d8530

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NetworkDynamicsInspector/src/serving.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function serve_app(::BrowserDisp, app)
8585
nothing
8686
end
8787
function close_display(::BrowserDisp; kwargs...)
88-
if BROWSER_STATE[:handler] isa Bonito.HTTPServer.BrowserDisplay
88+
if haskey(BROWSER_STATE, :handler) && BROWSER_STATE[:handler] isa Bonito.HTTPServer.BrowserDisplay
8989
close(BROWSER_STATE[:handler])
9090
end
9191
BROWSER_STATE[:handler] = nothing

0 commit comments

Comments
 (0)