Skip to content

Commit bdf35f7

Browse files
committed
do not raise an other exception, use the orginal
1 parent e4ea6db commit bdf35f7

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

test/internals_test.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -365,11 +365,9 @@ def af_family_supported(af)
365365
s.bind(sa)
366366
rescue Errno::EADDRINUSE => e
367367
tries -= 1
368-
if tries > 0
369-
retry
370-
else
371-
raise Errno::EADDRINUSE, e
372-
end
368+
retry if tries > 0
369+
370+
raise
373371
end
374372
yield
375373
rescue Errno::EADDRNOTAVAIL

0 commit comments

Comments
 (0)