[CORDA-2737] Buffer events from observables in ProgressTracker until subscribed to (#4882)

This commit is contained in:
JamesHR3
2019-03-13 16:33:29 +00:00
committed by Shams Asari
parent 94d827ebe4
commit 76dc981b91
5 changed files with 49 additions and 15 deletions

View File

@ -78,7 +78,6 @@ abstract class ANSIProgressRenderer {
flowProgressHandle?.apply {
stepsTreeIndexFeed?.apply {
treeIndex = snapshot
treeIndexProcessed.add(snapshot)
subscriptionIndex = updates.subscribe({
treeIndex = it
@ -87,7 +86,6 @@ abstract class ANSIProgressRenderer {
}, { done(it) }, { done(null) })
}
stepsTreeFeed?.apply {
tree = snapshot
subscriptionTree = updates.subscribe({
remapIndices(it)
tree = it