CORDA-1686: Make "rpc-client-sender" daemon (#3455)

Such that they do not prevent application that started them from exiting.
This commit is contained in:
Viktor Kolomeyko 2018-06-28 08:53:30 +01:00 committed by GitHub
parent 4e52a957d1
commit 34923506f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -201,7 +201,7 @@ class RPCClientProxyHandler(
ThreadFactoryBuilder().setNameFormat("rpc-client-reaper-%d").setDaemon(true).build()
)
sendExecutor = Executors.newSingleThreadExecutor(
ThreadFactoryBuilder().setNameFormat("rpc-client-sender-%d").build()
ThreadFactoryBuilder().setNameFormat("rpc-client-sender-%d").setDaemon(true).build()
)
reaperScheduledFuture = reaperExecutor!!.scheduleAtFixedRate(
this::reapObservablesAndNotify,