Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
Fix reconnect on unix-domain connection eventmachine#261
Browse files Browse the repository at this point in the history
  • Loading branch information
dre3k committed Sep 17, 2011
1 parent edaeafe commit fa4d4ee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/eventmachine.rb
Expand Up @@ -761,7 +761,11 @@ def self.reconnect server, port, handler
#raise "still connected" if @conns.has_key?(handler.signature)
return handler if @conns.has_key?(handler.signature)

s = connect_server server, port
s = if port
connect_server server, port
else
connect_unix_server server
end
handler.signature = s
@conns[s] = handler
block_given? and yield handler
Expand Down

0 comments on commit fa4d4ee

Please sign in to comment.