Skip to content

Commit

Permalink
processing from a specific item should recurse from the keeper of eac…
Browse files Browse the repository at this point in the history
…h cycle, not from the initial specified item (which might've disappeared) #11
  • Loading branch information
sobri909 committed May 5, 2018
1 parent d9db752 commit 6815118
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LocoKit/Base/Timelines/TimelineProcessor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,15 @@ public class TimelineProcessor {
let description = String(describing: winningMerge)
os_log("Doing:\n%@", type: .debug, description)

winningMerge.doIt()
let results = winningMerge.doIt()

onMain {
let note = Notification(name: .mergedTimelineItems, object: self, userInfo: ["merge": description])
NotificationCenter.default.post(note)
}

// recurse until no valid merges left to do
self.process(from: fromItem)
self.process(from: results.kept)
}
}
}
Expand Down

0 comments on commit 6815118

Please sign in to comment.