mirror of
https://github.com/corda/corda.git
synced 2025-06-19 07:38:22 +00:00
* ENT-6584: Move sending of events to finally block. This makes sure it gets executed in event of an exception.
This commit is contained in:
@ -112,12 +112,11 @@ class DatabaseTransaction(
|
|||||||
} finally {
|
} finally {
|
||||||
clearException()
|
clearException()
|
||||||
contextTransactionOrNull = outerTransaction
|
contextTransactionOrNull = outerTransaction
|
||||||
}
|
if (outerTransaction == null) {
|
||||||
|
synchronized(this) {
|
||||||
if (outerTransaction == null) {
|
closed = true
|
||||||
synchronized(this) {
|
boundary.onNext(CordaPersistence.Boundary(id, committed))
|
||||||
closed = true
|
}
|
||||||
boundary.onNext(CordaPersistence.Boundary(id, committed))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user