Skip to content

Commit

Permalink
Merge [6241] from trunk.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn-commit.rubyonrails.org/rails/branches/1-2-stable@6242 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
jeremy committed Feb 26, 2007
1 parent f444374 commit ee31d64
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion activerecord/lib/active_record/vendor/mysql.rb
Expand Up @@ -1174,7 +1174,11 @@ def real_connect(*args)
def finalizer(net)
proc {
net.clear
net.write Mysql::COM_QUIT.chr
begin
net.write(Mysql::COM_QUIT.chr)
net.close
rescue # Ignore IOError if socket is already closed.
end
}
end

Expand Down

0 comments on commit ee31d64

Please sign in to comment.