mirror of
https://github.com/corda/corda.git
synced 2025-03-17 01:25:25 +00:00
ENT-1983: throw more specific exception when starting a flow as a result
of P2P messaging and SMM is stopped.
This commit is contained in:
parent
4f1a22dfac
commit
644f1c6d2f
@ -145,7 +145,7 @@ class MultiThreadedStateMachineManager(
|
||||
serviceHub.networkMapCache.nodeReady.then {
|
||||
resumeRestoredFlows(fibers)
|
||||
flowMessaging.start { receivedMessage, deduplicationHandler ->
|
||||
lifeCycle.requireState(State.STARTED) {
|
||||
lifeCycle.requireState(State.STARTED, StateMachineStoppedException("Flow cannot be started. State machine is stopped.")) {
|
||||
deliverExternalEvent(deduplicationHandler.externalCause)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user