lib/pagetience/meditate.rb in pagetience-0.4.2 vs lib/pagetience/meditate.rb in pagetience-0.4.3
- old
+ new
@@ -27,9 +27,10 @@
break if @latest_result == expected
sleep @polling
@timeout = @timeout - @polling
end
+ msg = msg.send(:call) if msg.is_a? Proc
raise Pagetience::TimeoutError, msg unless @latest_result == expected
@latest_result
end
end
\ No newline at end of file