mirror of
https://github.com/corda/corda.git
synced 2024-12-22 14:22:28 +00:00
Fix rpc sender thread busy looping
This commit is contained in:
parent
3391810101
commit
cd569577d2
@ -210,7 +210,7 @@ class RPCServer(
|
||||
return thread(name = "rpc-server-sender", isDaemon = true) {
|
||||
var deduplicationSequenceNumber = 0L
|
||||
while (true) {
|
||||
val job = sendJobQueue.poll()
|
||||
val job = sendJobQueue.take()
|
||||
when (job) {
|
||||
is RpcSendJob.Send -> handleSendJob(deduplicationSequenceNumber++, job)
|
||||
RpcSendJob.Stop -> return@thread
|
||||
|
Loading…
Reference in New Issue
Block a user