Skip to content

Commit 9e2ada2

Browse files
committed
Rescue IOError during shutdown
1 parent 83cd510 commit 9e2ada2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ruby_lsp/ruby_lsp_rails/runner_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def send_message(request, params = nil)
176176
json = message.to_json
177177

178178
@stdin.write("Content-Length: #{json.length}\r\n\r\n", json)
179-
rescue Errno::EPIPE
179+
rescue Errno::EPIPE, IOError
180180
# The server connection died
181181
end
182182

0 commit comments

Comments
 (0)