lib/vendor/fssm/backends/polling.rb in chriseppstein-compass-0.8.14 vs lib/vendor/fssm/backends/polling.rb in chriseppstein-compass-0.8.15
- old
+ new
@@ -4,10 +4,12 @@
@handlers = []
@latency = options[:latency] || 1
end
def add_path(path, preload=true)
- @handlers << FSSM::State.new(path, preload)
+ handler = FSSM::State.new(path)
+ handler.refresh(path.to_pathname, true) if preload
+ @handlers << handler
end
def run
begin
loop do