diff options
author | John Hawthorn <john@hawthorn.email> | 2019-06-04 09:28:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-04 09:28:40 -0700 |
commit | 40ca7fadc9186e297f38d1d8953f4ef6e83ca594 (patch) | |
tree | b73a99eff1ffd92a8d50bd8536d80a91d460e347 | |
parent | 30b03ad73bad126538f4c6199522ccd007f101d5 (diff) | |
parent | c763be7c97973fa0dd296fd895d4704dcd4734b1 (diff) | |
download | rails-40ca7fadc9186e297f38d1d8953f4ef6e83ca594.tar.gz rails-40ca7fadc9186e297f38d1d8953f4ef6e83ca594.tar.bz2 rails-40ca7fadc9186e297f38d1d8953f4ef6e83ca594.zip |
Merge pull request #36398 from jhawthorn/file_update_checker_empty
Don't call listen with empty directory list
-rw-r--r-- | activesupport/lib/active_support/evented_file_update_checker.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/evented_file_update_checker.rb b/activesupport/lib/active_support/evented_file_update_checker.rb index 84caa00b58..5a79822c49 100644 --- a/activesupport/lib/active_support/evented_file_update_checker.rb +++ b/activesupport/lib/active_support/evented_file_update_checker.rb @@ -108,7 +108,10 @@ module ActiveSupport private def boot! normalize_dirs! - Listen.to(*@dtw, &method(:changed)).start + + unless @dtw.empty? + Listen.to(*@dtw, &method(:changed)).start + end end def shutdown! |