mirror of
https://github.com/corda/corda.git
synced 2025-01-18 10:46:38 +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:
parent
30786fb681
commit
76366398fe
@ -112,12 +112,11 @@ class DatabaseTransaction(
|
||||
} finally {
|
||||
clearException()
|
||||
contextTransactionOrNull = outerTransaction
|
||||
}
|
||||
|
||||
if (outerTransaction == null) {
|
||||
synchronized(this) {
|
||||
closed = true
|
||||
boundary.onNext(CordaPersistence.Boundary(id, committed))
|
||||
if (outerTransaction == null) {
|
||||
synchronized(this) {
|
||||
closed = true
|
||||
boundary.onNext(CordaPersistence.Boundary(id, committed))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user