From df57d6ba5d8ed20e15bd2de3a57c8ff711671d28 Mon Sep 17 00:00:00 2001 From: Vladimir Dementyev Date: Fri, 19 Mar 2021 16:43:10 +0300 Subject: [PATCH] fix: handle getaddrinfo errors when checking dev server (#39) --- vite_ruby/lib/vite_ruby.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vite_ruby/lib/vite_ruby.rb b/vite_ruby/lib/vite_ruby.rb index 59ca2322..45c12b24 100644 --- a/vite_ruby/lib/vite_ruby.rb +++ b/vite_ruby/lib/vite_ruby.rb @@ -94,7 +94,7 @@ def dev_server_running? Socket.tcp(config.host, config.port, connect_timeout: config.dev_server_connect_timeout).close @running_at = Time.now true - rescue SystemCallError + rescue @running_at = false end