Skip to content

Commit 767cde7

Browse files
committed
1 parent 41bf7ab commit 767cde7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/WebSockets.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,9 @@ function open(f::Function, url; suppress_close_error::Bool=false, verbose=false,
384384
close(ws, CloseFrameBody(1008, "Unexpected client websocket error"))
385385
end
386386
end
387-
rethrow()
387+
if !isok(e)
388+
rethrow()
389+
end
388390
finally
389391
if !isclosed(ws)
390392
close(ws, CloseFrameBody(1000, ""))

0 commit comments

Comments
 (0)