[Groonga-commit] droonga/droonga-engine at 7566222 [master] Revert "Check whether the block is given or not correctly"

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Sep 5 17:49:14 JST 2014


YUKI Hiroshi	2014-09-05 17:49:14 +0900 (Fri, 05 Sep 2014)

  New Revision: 7566222a07006e188f7c53b9b76233ce013dc8a6
  https://github.com/droonga/droonga-engine/commit/7566222a07006e188f7c53b9b76233ce013dc8a6

  Message:
    Revert "Check whether the block is given or not correctly"
    
    This reverts commit 931976f63c3225955846e0aff02f928b03a2cf10.
    To step back to the position before I introduce changes to make shutdown processes "yieldable".

  Modified files:
    lib/droonga/worker_process_agent.rb

  Modified: lib/droonga/worker_process_agent.rb (+1 -1)
===================================================================
--- lib/droonga/worker_process_agent.rb    2014-09-05 17:00:20 +0900 (f87f199)
+++ lib/droonga/worker_process_agent.rb    2014-09-05 17:49:14 +0900 (d9eda53)
@@ -46,7 +46,7 @@ module Droonga
       on_finish = lambda do
         n_rest_closes -= 1
         if n_rest_closes.zero?
-          block.call unless block.nil?
+          block.call if block.given?
           logger.trace("stop: done")
         end
       end
-------------- next part --------------
HTML����������������������������...
下載 



More information about the Groonga-commit mailing list
Back to archive index