mirror of
https://github.com/corda/corda.git
synced 2025-06-23 09:25:36 +00:00
Merge pull request #1391 from corda/chrisr3-os-merge
Merge from Open Source
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
plugins {
|
||||
id "com.github.johnrengelman.shadow" version "2.0.4"
|
||||
id 'com.github.johnrengelman.shadow'
|
||||
}
|
||||
apply plugin: 'kotlin'
|
||||
apply plugin: 'net.corda.plugins.quasar-utils'
|
||||
|
@ -71,8 +71,11 @@ class ArtemisMessagingClient(private val config: MutualSslConfiguration,
|
||||
override fun stop() = synchronized(this) {
|
||||
started?.run {
|
||||
producer.close()
|
||||
// Ensure any trailing messages are committed to the journal
|
||||
session.commit()
|
||||
// Since we are leaking the session outside of this class it may well be already closed.
|
||||
if(!session.isClosed) {
|
||||
// Ensure any trailing messages are committed to the journal
|
||||
session.commit()
|
||||
}
|
||||
// Closing the factory closes all the sessions it produced as well.
|
||||
sessionFactory.close()
|
||||
serverLocator.close()
|
||||
|
Reference in New Issue
Block a user