Permalink
Browse files

Merge pull request #262 from dre3k/master

Fix reconnect on unix-domain connection #261
  • Loading branch information...
2 parents edaeafe + fa4d4ee commit 4d4de9d294df20c3e092e4f16abfc787935830d9 @tmm1 tmm1 committed Sep 17, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/eventmachine.rb
View
@@ -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

0 comments on commit 4d4de9d

Please sign in to comment.