mirror of
https://github.com/corda/corda.git
synced 2025-02-20 17:33:15 +00:00
Fixed Thread.sleep() issue inside Fiber. (#4326)
This commit is contained in:
parent
488f11e2e6
commit
628aa0b799
@ -224,7 +224,7 @@ class FlowStateMachineImpl<R>(override val id: StateMachineRunId,
|
||||
} catch (t: Throwable) {
|
||||
if(t.isUnrecoverable()) {
|
||||
logger.error("Caught unrecoverable error from flow. Forcibly terminating the JVM, this might leave resources open, and most likely will.", t)
|
||||
Thread.sleep(Duration.ofSeconds(10).toMillis()) // To allow async logger to flush.
|
||||
Fiber.sleep(Duration.ofSeconds(10).toMillis()) // To allow async logger to flush.
|
||||
Runtime.getRuntime().halt(1)
|
||||
}
|
||||
logger.info("Flow raised an error... sending it to flow hospital", t)
|
||||
|
Loading…
x
Reference in New Issue
Block a user