mirror of
https://github.com/corda/corda.git
synced 2024-12-26 16:11:12 +00:00
Fix leak by executing acks on the messaging executor
This commit is contained in:
parent
b3ca36132f
commit
fcdb669042
@ -294,9 +294,11 @@ class P2PMessagingClient(config: NodeConfiguration,
|
||||
// processing a message but if so, it'll be parked waiting for us to count down the latch, so
|
||||
// the session itself is still around and we can still ack messages as a result.
|
||||
override fun acknowledge() {
|
||||
state.locked {
|
||||
artemisMessage.individualAcknowledge()
|
||||
artemis.started!!.session.commit()
|
||||
messagingExecutor.fetchFrom {
|
||||
state.locked {
|
||||
artemisMessage.individualAcknowledge()
|
||||
artemis.started!!.session.commit()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user