Browse Source

修复优先数据队列误判问题

origin/hotfix/hlk-flight
root 4 months ago
parent
commit
b77bdb0837
  1. 2
      app/core/websocket/send_controller.py

2
app/core/websocket/send_controller.py

@ -206,7 +206,7 @@ class WebSocketSendController:
message_sent = False
# 1. 优先发送业务数据
if self.send_channel.queue_size > 0:
if self.send_channel.total_queue_size > 0: # 修改这里,使用total_queue_size而不是queue_size
try:
message = await self.send_channel.receive_message()
if message:

Loading…
Cancel
Save