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

Such that they do not prevent application that started them from exiting.

(cherry picked from commit 3492350)
This commit is contained in:
Viktor Kolomeyko 2018-07-16 11:26:13 +01:00 committed by Katelyn Baker
parent 3da07a1105
commit ac6cbeca0c

View File

@ -180,7 +180,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,