ruby-changes:49227
From: eregon <ko1@a...>
Date: Wed, 20 Dec 2017 00:40:19 +0900 (JST)
Subject: [ruby-changes:49227] eregon:r61342 (trunk): Break out of the loop after shutdown in DRbServer
eregon 2017-12-20 00:40:13 +0900 (Wed, 20 Dec 2017) New Revision: 61342 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61342 Log: Break out of the loop after shutdown in DRbServer * Patch by @seki: https://gist.github.com/seki/ae8bef20238c37c94a91b5461c4bfbdd Modified files: trunk/lib/drb/drb.rb Index: lib/drb/drb.rb =================================================================== --- lib/drb/drb.rb (revision 61341) +++ lib/drb/drb.rb (revision 61342) @@ -1678,7 +1678,10 @@ module DRb https://github.com/ruby/ruby/blob/trunk/lib/drb/drb.rb#L1678 error_print(e) if verbose ensure client.close unless succ - shutdown if Thread.current['DRb']['stop_service'] + if Thread.current['DRb']['stop_service'] + shutdown + break + end break unless succ end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/