lib/ably/modules/async_wrapper.rb in ably-0.8.7 vs lib/ably/modules/async_wrapper.rb in ably-0.8.8

- old
+ new

@@ -40,10 +40,10 @@ # def async_wrap(success_callback = nil) raise ArgumentError, 'Block required' unless block_given? Ably::Util::SafeDeferrable.new(logger).tap do |deferrable| - deferrable.callback &success_callback if success_callback + deferrable.callback(&success_callback) if success_callback operation_with_exception_handling = proc do begin yield rescue StandardError => err