Skip to content

Commit

Permalink
removing the devnull
Browse files Browse the repository at this point in the history
  • Loading branch information
tlienart committed Jul 20, 2023
1 parent 849cee9 commit fedf7c8
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/server.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@ function update_and_close_viewers!(
@sync for wsᵢ in ws_to_update_and_close
isopen(wsᵢ.io) && @spawn begin
try
redirect_stderr(devnull) do
HTTP.WebSockets.send(wsᵢ, "update")
end
HTTP.WebSockets.send(wsᵢ, "update")
catch
end
end
Expand All @@ -65,10 +63,8 @@ function update_and_close_viewers!(
@sync for wsi in ws_to_update_and_close
isopen(wsi.io) && @spawn begin
try
redirect_stderr(devnull) do
wsi.writeclosed = wsi.readclosed = true
close(wsi.io)
end
wsi.writeclosed = wsi.readclosed = true
close(wsi.io)
catch
end
end
Expand Down

0 comments on commit fedf7c8

Please sign in to comment.