Skip to content

Commit

Permalink
Ignore errors when closing connections.
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Mar 4, 2013
1 parent ea806f5 commit 4bcccd4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cluster.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,10 @@ def close_existing_connection
while @connections.length >= @max_connections
@connections.each{|n,r|
@connections.delete(n)
begin r.quit end
begin
r.quit
rescue
end
break
}
end
Expand Down

0 comments on commit 4bcccd4

Please sign in to comment.