Skip to content

Commit

Permalink
rescue on Errno::ENETUNREACH, in port_in_use? method
Browse files Browse the repository at this point in the history
  • Loading branch information
foxtree committed Jun 29, 2018
1 parent e8c5be5 commit 7366c26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/billy/proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def port_in_use?(port)
s.close
Billy.log(:info, "puffing-billy: Waiting for event machine to shutdown on port #{port}")
s
rescue Errno::ECONNREFUSED, Errno::EADDRNOTAVAIL
rescue Errno::ECONNREFUSED, Errno::EADDRNOTAVAIL, Errno::ENETUNREACH
false
end

Expand Down

0 comments on commit 7366c26

Please sign in to comment.