Skip to content
This repository has been archived by the owner on Jul 23, 2023. It is now read-only.

Commit

Permalink
close socket in wait_for_slanger
Browse files Browse the repository at this point in the history
  • Loading branch information
stevegraham committed Apr 27, 2012
1 parent 9481781 commit 0a4c60d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/event_machine_helper_methods.rb
Expand Up @@ -29,7 +29,7 @@ def stop_slanger
def wait_for_slanger opts = {}
opts = { port: 8080 }.update opts
begin
TCPSocket.new '0.0.0.0', opts[:port]
TCPSocket.new('0.0.0.0', opts[:port]).close
rescue
sleep 0.1
retry
Expand Down

0 comments on commit 0a4c60d

Please sign in to comment.