Skip to content

Commit

Permalink
fix: handle getaddrinfo errors when checking dev server (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
palkan authored Mar 19, 2021
1 parent 7bb6506 commit df57d6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vite_ruby/lib/vite_ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit df57d6b

Please sign in to comment.