From 7e6e11ba991f15dbfb852d4d8923373bc1198970 Mon Sep 17 00:00:00 2001 From: Mike Dirolf Date: Thu, 12 Mar 2009 14:31:37 -0400 Subject: [PATCH] only mask socket errors --- lib/mongo/db.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mongo/db.rb b/lib/mongo/db.rb index 212c1ec..4597def 100644 --- a/lib/mongo/db.rb +++ b/lib/mongo/db.rb @@ -143,7 +143,7 @@ module XGen @semaphore.lock if semaphore_is_locked break if @slave_ok || is_master - rescue => ex + rescue SocketError => ex close if @socket end @socket