lib/polling/engine.rb in polling-0.1.4 vs lib/polling/engine.rb in polling-0.1.5
- old
+ new
@@ -36,20 +36,15 @@
stime = opts[:init_time] - stime.abs
end
debug debug: opts[:debug], stime: stime
stime
- rescue => ex
- $stderr.puts ex.to_s
- return opts[:init_time]
end
def stime_async opts={}
stime = opts[:interval] - (opts[:after] - opts[:before])
debug debug: opts[:debug], stime: stime
stime
- rescue => ex
- raise ex
end
private
def target target=@target, offset=@offset