mirror of
https://github.com/corda/corda.git
synced 2025-03-14 08:16:32 +00:00
CORDA-1564 Remove old sessions on flow retry from multi-threaded SMM (#906)
This commit is contained in:
parent
39548aefe2
commit
609c313496
@ -356,6 +356,10 @@ class MultiThreadedStateMachineManager(
|
||||
null
|
||||
}
|
||||
externalEventMutex.withLock {
|
||||
// Remove any sessions the old flow has.
|
||||
for (sessionId in getFlowSessionIds(currentState.checkpoint)) {
|
||||
sessionToFlow.remove(sessionId)
|
||||
}
|
||||
if (flow != null) addAndStartFlow(flowId, flow)
|
||||
// Deliver all the external events from the old flow instance.
|
||||
val unprocessedExternalEvents = mutableListOf<ExternalEvent>()
|
||||
|
Loading…
x
Reference in New Issue
Block a user