diff --git a/middleman-core/lib/middleman-core/sources/source_watcher.rb b/middleman-core/lib/middleman-core/sources/source_watcher.rb index 9852e223..07d7ff62 100644 --- a/middleman-core/lib/middleman-core/sources/source_watcher.rb +++ b/middleman-core/lib/middleman-core/sources/source_watcher.rb @@ -163,7 +163,7 @@ module Middleman wait_for_delay: 0.5 } - config[:latency] = @latency if @latency + config[:latency] = @latency.to_i if @latency @listener = ::Listen.to(@directory.to_s, config, &method(:on_listener_change))