Fixed scoping issue that causes connection to hang w/ :connect_timeout option

This commit is contained in:
Andrew Kane 2012-01-06 00:37:56 -08:00
parent 63708a5f16
commit ebfab91f53
1 changed files with 2 additions and 0 deletions

View File

@ -604,6 +604,8 @@ module Mongo
def check_is_master(node)
begin
host, port = *node
socket = nil
config = nil
if @connect_timeout
Mongo::TimeoutHandler.timeout(@connect_timeout, OperationTimeout) do