From 045a556e9959e6d0c2f0d1743aba91898eb455d9 Mon Sep 17 00:00:00 2001 From: Kyle Banker Date: Mon, 17 Oct 2011 15:09:54 -0500 Subject: [PATCH] minor: test fix --- lib/mongo/connection.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mongo/connection.rb b/lib/mongo/connection.rb index eb9f49d..5097ade 100644 --- a/lib/mongo/connection.rb +++ b/lib/mongo/connection.rb @@ -537,7 +537,7 @@ module Mongo # NOTE: Do check if this needs to be more stringent. # Probably not since if any node raises a connection failure, all nodes will be closed. def connected? - @primary_pool && @primary_pool.host && @primary_pool.port + @primary_pool && !@primary_pool.closed? end # Determine if the connection is active. In a normal case the *server_info* operation