We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3ff748 commit b1eec43Copy full SHA for b1eec43
lib/net/ldap/connection.rb
@@ -690,7 +690,7 @@ def delete(args)
690
#
691
# Typically a TCPSocket, but can be a OpenSSL::SSL::SSLSocket
692
def socket
693
- return @conn if defined? @conn
+ return @conn if defined?(@conn) && !@conn.nil?
694
695
# First refactoring uses the existing methods open_connection and
696
# prepare_socket to set @conn. Next cleanup would centralize connection
0 commit comments