Skip to content

Commit dc84d3d

Browse files
committed
Also rethrow when upgrading websocket
1 parent 767cde7 commit dc84d3d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/WebSockets.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,9 @@ function upgrade(f::Function, http::Streams.Stream; suppress_close_error::Bool=f
451451
close(ws, CloseFrameBody(1011, "Unexpected server websocket error"))
452452
end
453453
end
454+
if !isok(e)
455+
rethrow()
456+
end
454457
finally
455458
if !isclosed(ws)
456459
close(ws, CloseFrameBody(1000, ""))

0 commit comments

Comments
 (0)