Skip to content

Commit d7c7467

Browse files
authored
Merge pull request #72 from julia-vscode/fix-shutdown-situation
Close outstanding request channels on error
2 parents c03664c + 552ec83 commit d7c7467

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/core.jl

+4
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@ function Base.run(x::JSONRPCEndpoint)
145145
finally
146146
close(x.in_msg_queue)
147147
end
148+
149+
for i in values(x.outstanding_requests)
150+
close(i)
151+
end
148152
catch err
149153
bt = catch_backtrace()
150154
if x.err_handler !== nothing

0 commit comments

Comments
 (0)