Navigation Menu

Skip to content

Commit

Permalink
Prevent to start timer twice
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 23, 2015
1 parent 252a930 commit 7b2ef5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/droonga/file_observer.rb
Expand Up @@ -39,6 +39,7 @@ def initialize(loop, path)
end

def start
return if @timer
@timer = Coolio::TimerWatcher.new(CHECK_INTERVAL, true)
@timer.on_timer do
if updated?
Expand Down

0 comments on commit 7b2ef5f

Please sign in to comment.