stabilize NSProgress when lightweight migration falls back to InferredMappingModel

This commit is contained in:
John Estropia committed 2018-08-09 18:18:21 +09:00
1 parent 30685d4355
commit 808e8ff97a
2 files changed
+6 -3

No files matched your search

+2 -2
View File
@@ -708,9 +708,9 @@ public extension DataStack {
var fakeProgress: Float = 0
var recursiveCheck: () -> Void = {}
recursiveCheck = {
recursiveCheck = { [weak timerQueue] in
guard fakeProgress < 1 else {
guard let timerQueue = timerQueue, fakeProgress < 1 else {
return
}