Skip to content

Commit a2ef2e2

Browse files
author
blackhedd
committed
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."
1 parent 7c1877d commit a2ef2e2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/net/ldap.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,7 @@ def open
543543
@open_connection.bind @auth
544544
yield self
545545
@open_connection.close
546+
@open_connection = nil
546547
end
547548

548549

0 commit comments

Comments
 (0)