Add sleep to not eat 100% cpu :)

This commit is contained in:
Thibaud Guillaume-Gentil 2011-08-30 10:48:29 +02:00
parent e752dbe1c1
commit 742b9fe3ff

View File

@ -50,6 +50,8 @@ module Guard
files = @files.dup
@files.clear
run { run_on_change_for_all_guards(files) }
else
sleep 0.1
end
end
end