lib/defog/proxy.rb in defog-0.7.1 vs lib/defog/proxy.rb in defog-0.7.2

- old
+ new

@@ -220,10 +220,18 @@ would_free -= path.size end end # free the remaining candidates - candidates.each(&:unlink) + candidates.each do |candidate| + begin + candidate.unlink + rescue Errno::ENOENT + # some other process has deleted the while we were looking at it. + # nothing to do. + end + end + end end end