From f1b45e2f44f45122313abc88e139d49c0e39c7b7 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 16 Mar 2011 20:12:22 -0700 Subject: watcher: retry on empty stats Those will cause Aggregate to raise Errno::EDOM --- lib/raindrops/watcher.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib') diff --git a/lib/raindrops/watcher.rb b/lib/raindrops/watcher.rb index f289970..8167dfd 100644 --- a/lib/raindrops/watcher.rb +++ b/lib/raindrops/watcher.rb @@ -243,6 +243,11 @@ class Raindrops::Watcher else not_found end + rescue Errno::EDOM + raise if defined?(retried) + retried = true + wait_snapshot + retry end def not_found -- cgit v1.2.3-24-ge0c7