From ac6cbeca0c22cbf1af4d9963d28eb56617ab3ff9 Mon Sep 17 00:00:00 2001 From: Viktor Kolomeyko Date: Mon, 16 Jul 2018 11:26:13 +0100 Subject: [PATCH] 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) --- .../net/corda/client/rpc/internal/RPCClientProxyHandler.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/rpc/src/main/kotlin/net/corda/client/rpc/internal/RPCClientProxyHandler.kt b/client/rpc/src/main/kotlin/net/corda/client/rpc/internal/RPCClientProxyHandler.kt index 2f65f21e40..4ed28a6fad 100644 --- a/client/rpc/src/main/kotlin/net/corda/client/rpc/internal/RPCClientProxyHandler.kt +++ b/client/rpc/src/main/kotlin/net/corda/client/rpc/internal/RPCClientProxyHandler.kt @@ -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,