mirror of
https://github.com/corda/corda.git
synced 2025-03-17 17:45:17 +00:00
Merge pull request #921 from corda/ENT-1983
ENT-1983: throw more specific exception when starting a flow as a result
This commit is contained in:
commit
2aac9e8687
@ -146,7 +146,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