Add sleep to not eat 100% cpu :)
This commit is contained in:
parent
e752dbe1c1
commit
742b9fe3ff
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user