diff --git a/MMMLoadable.podspec b/MMMLoadable.podspec index 64cc569..afd5d24 100644 --- a/MMMLoadable.podspec +++ b/MMMLoadable.podspec @@ -6,7 +6,7 @@ Pod::Spec.new do |s| s.name = "MMMLoadable" - s.version = "1.10.0" + s.version = "1.10.1" s.summary = "A simple model for async calculations" s.description = "#{s.summary}." s.homepage = "https://github.com/mediamonks/#{s.name}" diff --git a/Sources/MMMLoadable/MMMLoadableChain.swift b/Sources/MMMLoadable/MMMLoadableChain.swift index 9f150ae..fc4d84b 100644 --- a/Sources/MMMLoadable/MMMLoadableChain.swift +++ b/Sources/MMMLoadable/MMMLoadableChain.swift @@ -108,7 +108,7 @@ public final class MMMLoadableChain: MMMLoadable { self.setFailedToSyncWithError(error) case .proceed: self.currentIndex += 1 - if self.currentIndex < chain.endIndex { + if self.currentIndex < self.chain.endIndex { self.syncNextLater() } else { self.setDidSyncSuccessfully() @@ -117,7 +117,7 @@ public final class MMMLoadableChain: MMMLoadable { } else { self.setFailedToSyncWithError(NSError( domain: self, - message: "Could not sync element #\(currentIndex)", + message: "Could not sync element #\(self.currentIndex)", underlyingError: loadable.error )) }