mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
to prevent collection, keep the last result.
This commit is contained in:
parent
82539a3d13
commit
64e19ad7e9
1 changed files with 2 additions and 0 deletions
|
@ -1721,6 +1721,7 @@ module DRb
|
|||
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
|
|||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue