[Groonga-commit] droonga/droonga-engine at 9f890eb [master] Clear timer correctly on shutdown

アーカイブの一覧に戻る

YUKI Hiroshi null+****@clear*****
Thu Apr 23 11:02:39 JST 2015


YUKI Hiroshi	2015-04-23 11:02:39 +0900 (Thu, 23 Apr 2015)

  New Revision: 9f890ebe2cc23e551d3c485a60f964db39f2c8ef
  https://github.com/droonga/droonga-engine/commit/9f890ebe2cc23e551d3c485a60f964db39f2c8ef

  Message:
    Clear timer correctly on shutdown

  Modified files:
    lib/droonga/engine_node.rb

  Modified: lib/droonga/engine_node.rb (+8 -1)
===================================================================
--- lib/droonga/engine_node.rb    2015-04-23 10:46:21 +0900 (28b0fcc)
+++ lib/droonga/engine_node.rb    2015-04-23 11:02:39 +0900 (d2009e0)
@@ -61,7 +61,14 @@ module Droonga
 
     def shutdown
       logger.trace("shutdown: start")
-      @sender.shutdown if @sender
+      if @sender
+        @sender.shutdown
+        @sender = nil
+      end
+      if @auto_close_timer
+        @auto_close_timer.detach
+        @auto_close_timer = nil
+      end
       logger.trace("shutdown: done")
     end
 
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る