mirror of
https://github.com/corda/corda.git
synced 2025-01-20 03:36:29 +00:00
Make RPC client reaper threads into daemons so that they don't block JVM shutdown. (#781)
This commit is contained in:
parent
73666dbc7d
commit
20b806cb62
@ -157,7 +157,7 @@ class RPCClientProxyHandler(
|
||||
lifeCycle.requireState(State.UNSTARTED)
|
||||
reaperExecutor = Executors.newScheduledThreadPool(
|
||||
1,
|
||||
ThreadFactoryBuilder().setNameFormat("rpc-client-reaper-%d").build()
|
||||
ThreadFactoryBuilder().setNameFormat("rpc-client-reaper-%d").setDaemon(true).build()
|
||||
)
|
||||
reaperScheduledFuture = reaperExecutor!!.scheduleAtFixedRate(
|
||||
this::reapObservables,
|
||||
|
Loading…
Reference in New Issue
Block a user