ruby-changes:70874
From: Masatoshi <ko1@a...>
Date: Sat, 15 Jan 2022 00:58:36 +0900 (JST)
Subject: [ruby-changes:70874] 64e19ad7e9 (master): to prevent collection, keep the last result.
https://git.ruby-lang.org/ruby.git/commit/?id=64e19ad7e9 From 64e19ad7e98d9ede10116c6aa4ab4bd6e5b763a2 Mon Sep 17 00:00:00 2001 From: Masatoshi SEKI <m_seki@m...> Date: Sat, 15 Jan 2022 00:58:21 +0900 Subject: to prevent collection, keep the last result. --- lib/drb/drb.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/drb/drb.rb b/lib/drb/drb.rb index 34970698bda..2219f5eb4d0 100644 --- a/lib/drb/drb.rb +++ b/lib/drb/drb.rb @@ -1721,6 +1721,7 @@ module DRb https://github.com/ruby/ruby/blob/trunk/lib/drb/drb.rb#L1721 client_uri = client.uri @exported_uri << client_uri unless @exported_uri.include?(client_uri) end + last_invoke_method = nil loop do begin succ = false @@ -1733,6 +1734,7 @@ module DRb https://github.com/ruby/ruby/blob/trunk/lib/drb/drb.rb#L1734 rescue Exception => e error_print(e) if verbose ensure + last_invoke_method = invoke_method client.close unless succ if Thread.current['DRb']['stop_service'] shutdown -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/