From 12b085a7bf4c8c9a2ad7e30813983bbd8d8712ca Mon Sep 17 00:00:00 2001 From: kazu Date: Sat, 20 Oct 2018 12:28:52 +0000 Subject: Allow to stop by push(nil) for test git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/drb/extservm.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/drb') diff --git a/lib/drb/extservm.rb b/lib/drb/extservm.rb index 2d3c369bbf..9cce962062 100644 --- a/lib/drb/extservm.rb +++ b/lib/drb/extservm.rb @@ -61,8 +61,7 @@ module DRb private def invoke_thread Thread.new do - while true - name = @queue.pop + while name = @queue.pop invoke_service_command(name, @@command[name]) end end -- cgit v1.2.3