lib/wayfarer/networking/context.rb in wayfarer-0.4.6 vs lib/wayfarer/networking/context.rb in wayfarer-0.4.7
- old
+ new
@@ -23,11 +23,11 @@
private
def supervise
yield
- rescue *strategy.renew_on, *Wayfarer.config.network.renew_on => e
- renew
+ rescue *strategy.renew_on, *Wayfarer.config[:network][:renew_on] => e
+ renew # may raise
ensure
# If renewing raises, re-raise the originally caught exception
# TODO: Not nice this effectively swallows exceptions
raise e if e
end