Skip to content

Commit

Permalink
fix for undefined method for write exception
Browse files Browse the repository at this point in the history
 Date:      Mon Nov 23 16:27:38 2020 +0530
 Committer: Kanika Gupta <[email protected]>
  • Loading branch information
Kanika Gupta committed Nov 23, 2020
1 parent e3ff748 commit b1eec43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/net/ldap/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ def delete(args)
#
# Typically a TCPSocket, but can be a OpenSSL::SSL::SSLSocket
def socket
return @conn if defined? @conn
return @conn if defined?(@conn) && !@conn.nil?

# First refactoring uses the existing methods open_connection and
# prepare_socket to set @conn. Next cleanup would centralize connection
Expand Down

0 comments on commit b1eec43

Please sign in to comment.