From a2ef2e2df57c85cb37594af7c42066309218b028 Mon Sep 17 00:00:00 2001 From: blackhedd Date: Tue, 15 Aug 2006 08:46:38 +0000 Subject: [PATCH] Bug fix: set @open_connection to nil at the end of a Net::LDAP#open. Otherwise, you couldn't do more than one #open on the same Net::LDAP object! Subsequent ones would say "open already in progress." --- lib/net/ldap.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/net/ldap.rb b/lib/net/ldap.rb index af6898b..523db79 100644 --- a/lib/net/ldap.rb +++ b/lib/net/ldap.rb @@ -543,6 +543,7 @@ module Net @open_connection.bind @auth yield self @open_connection.close + @open_connection = nil end