mirror of
https://github.com/corda/corda.git
synced 2025-01-18 10:46:38 +00:00
CORDA-1564 Clean up old sessions when retrying flows. (#3278)
This commit is contained in:
parent
74fd5b9e9d
commit
51c359c48d
@ -354,6 +354,10 @@ class SingleThreadedStateMachineManager(
|
||||
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…
Reference in New Issue
Block a user