AsyncNioConnection

This commit is contained in:
redkale
2024-10-27 17:28:27 +08:00
parent f3f84bd5b3
commit c43d151d4d

View File

@@ -169,13 +169,10 @@ abstract class AsyncNioConnection extends AsyncConnection {
pipelineLock.unlock();
}
}
boolean empty = this.pipelineWriteQueue.isEmpty();
for (PipelinePacket packet : packets) {
this.pipelineWriteQueue.offer(packet);
}
if (empty) {
this.ioWriteThread.execute(this::pipelineDoWrite);
}
this.ioWriteThread.execute(this::pipelineDoWrite);
}
private void pipelineDoWrite() {