Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
Move credentials clear to connection
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurnn committed Dec 20, 2013
1 parent 3a4b630 commit 8a7719f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions lib/moped/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def connected?
#
# @since 1.0.0
def disconnect
credentials.clear
@sock.close
rescue
ensure
Expand Down
1 change: 0 additions & 1 deletion lib/moped/node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ def down?
#
# @since 1.2.0
def disconnect
@credentials.clear
connection{ |conn| conn.disconnect }
true
end
Expand Down

0 comments on commit 8a7719f

Please sign in to comment.