From 2e2bf2d1494aa8b4efc4ff9e132dde4afd15ece1 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 1 Dec 2006 05:56:51 +0000 Subject: If only life was that simple (it didnt help) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5658 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/lib/active_record/vendor/mysql.rb | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'activerecord/lib/active_record/vendor/mysql.rb') diff --git a/activerecord/lib/active_record/vendor/mysql.rb b/activerecord/lib/active_record/vendor/mysql.rb index 58ebed7d4f..0d8cc2efd8 100644 --- a/activerecord/lib/active_record/vendor/mysql.rb +++ b/activerecord/lib/active_record/vendor/mysql.rb @@ -1173,14 +1173,8 @@ class << Mysql def finalizer(net) proc { - begin - net.clear - net.write Mysql::COM_QUIT.chr - net.close - rescue Error => error - # Swallow lost connection errors if connection is already closed. - raise unless error.errno == Error::CR_SERVER_LOST - end + net.clear + net.write Mysql::COM_QUIT.chr } end -- cgit v1.2.3