Fixed scoping issue that causes connection to hang w/ :connect_timeout option
This commit is contained in:
parent
63708a5f16
commit
ebfab91f53
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user