mirror of
https://github.com/corda/corda.git
synced 2025-01-02 19:26:47 +00:00
Fix rpc sender thread busy looping (#2655)
This commit is contained in:
parent
b625dc7417
commit
aafd8401ad
@ -210,7 +210,7 @@ class RPCServer(
|
|||||||
return thread(name = "rpc-server-sender", isDaemon = true) {
|
return thread(name = "rpc-server-sender", isDaemon = true) {
|
||||||
var deduplicationSequenceNumber = 0L
|
var deduplicationSequenceNumber = 0L
|
||||||
while (true) {
|
while (true) {
|
||||||
val job = sendJobQueue.poll()
|
val job = sendJobQueue.take()
|
||||||
when (job) {
|
when (job) {
|
||||||
is RpcSendJob.Send -> handleSendJob(deduplicationSequenceNumber++, job)
|
is RpcSendJob.Send -> handleSendJob(deduplicationSequenceNumber++, job)
|
||||||
RpcSendJob.Stop -> return@thread
|
RpcSendJob.Stop -> return@thread
|
||||||
|
Loading…
Reference in New Issue
Block a user