[Groonga-commit] droonga/droonga-engine at 7b2ef5f [master] Prevent to start timer twice

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Apr 23 17:50:57 JST 2015


YUKI Hiroshi	2015-04-23 17:50:57 +0900 (Thu, 23 Apr 2015)

  New Revision: 7b2ef5f4adf744fbcc6cb62b50dd07b7ebf32c14
  https://github.com/droonga/droonga-engine/commit/7b2ef5f4adf744fbcc6cb62b50dd07b7ebf32c14

  Message:
    Prevent to start timer twice

  Modified files:
    lib/droonga/file_observer.rb

  Modified: lib/droonga/file_observer.rb (+1 -0)
===================================================================
--- lib/droonga/file_observer.rb    2015-04-23 17:50:28 +0900 (b41b9bf)
+++ lib/droonga/file_observer.rb    2015-04-23 17:50:57 +0900 (302d4c0)
@@ -39,6 +39,7 @@ module Droonga
     end
 
     def start
+      return if @timer
       @timer = Coolio::TimerWatcher.new(CHECK_INTERVAL, true)
       @timer.on_timer do
         if updated?
-------------- next part --------------
HTML����������������������������...
下载 



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